From 56011f8a22c8ccc7a9e318330c01d7edb9f5d0e3 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Thu, 5 Sep 2024 15:34:06 +0000 Subject: [PATCH] refactor: lint --- src/components/AppSidebar/AppSidebar.vue | 7 ++++++- src/components/Button/ButtonIcon.vue | 2 +- src/router/index.js | 2 +- tests/unit/specs/components/AppSidebar/AppSidebar.spec.js | 1 - 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/AppSidebar/AppSidebar.vue b/src/components/AppSidebar/AppSidebar.vue index 231fcdd1ae..39260e4792 100644 --- a/src/components/AppSidebar/AppSidebar.vue +++ b/src/components/AppSidebar/AppSidebar.vue @@ -101,7 +101,12 @@ const noAnalysis = computed(() => { {{ t('appSidebar.savedSearches') }} - + { }) const hasTooltip = computed(() => { - return !!tooltipText.value && !props.hideTooltip && (props.showTooltipForce || props.hideLabel) + return !!tooltipText.value && !props.hideTooltip && (props.showTooltipForce || props.hideLabel) }) const showTooltip = computed(() => { diff --git a/src/router/index.js b/src/router/index.js index e7dc9b0c02..4d3f858a68 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -250,7 +250,7 @@ export const routes = [ meta: { icon: 'dots-nine', title: 'All projects' - }, + } }, { name: 'project.new', diff --git a/tests/unit/specs/components/AppSidebar/AppSidebar.spec.js b/tests/unit/specs/components/AppSidebar/AppSidebar.spec.js index fb54cf56b3..cfba1edd2a 100644 --- a/tests/unit/specs/components/AppSidebar/AppSidebar.spec.js +++ b/tests/unit/specs/components/AppSidebar/AppSidebar.spec.js @@ -30,7 +30,6 @@ describe('AppSidebar.vue', () => { return shallowMount(AppSidebar, { ...options }) } - beforeEach(async () => { vi.clearAllMocks() wrapper = setLocalMode()