Skip to content

Commit a83ed8a

Browse files
committed
fix(eslint): glob import spec pattern
Signed-off-by: skjnldsv <[email protected]>
1 parent 26cc478 commit a83ed8a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/files/src/composables/useNavigation.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('Composables: useNavigation', () => {
2929

3030
describe('currentView', () => {
3131
beforeEach(() => {
32+
// eslint-disable-next-line import/namespace
3233
navigation = new nextcloudFiles.Navigation()
3334
spy.mockImplementation(() => navigation)
3435
})
@@ -39,6 +40,7 @@ describe('Composables: useNavigation', () => {
3940
})
4041

4142
it('should return already active navigation', async () => {
43+
// eslint-disable-next-line import/namespace
4244
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
4345
navigation.register(view)
4446
navigation.setActive(view)
@@ -48,6 +50,7 @@ describe('Composables: useNavigation', () => {
4850
})
4951

5052
it('should be reactive on updating active navigation', async () => {
53+
// eslint-disable-next-line import/namespace
5154
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
5255
navigation.register(view)
5356
const wrapper = mount(TestComponent)
@@ -63,6 +66,7 @@ describe('Composables: useNavigation', () => {
6366

6467
describe('views', () => {
6568
beforeEach(() => {
69+
// eslint-disable-next-line import/namespace
6670
navigation = new nextcloudFiles.Navigation()
6771
spy.mockImplementation(() => navigation)
6872
})
@@ -73,6 +77,7 @@ describe('Composables: useNavigation', () => {
7377
})
7478

7579
it('should return already registered views', () => {
80+
// eslint-disable-next-line import/namespace
7681
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
7782
// register before mount
7883
navigation.register(view)
@@ -82,7 +87,9 @@ describe('Composables: useNavigation', () => {
8287
})
8388

8489
it('should be reactive on registering new views', () => {
90+
// eslint-disable-next-line import/namespace
8591
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
92+
// eslint-disable-next-line import/namespace
8693
const view2 = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-2', name: 'My View 2', order: 1 })
8794

8895
// register before mount

apps/files/src/views/favorites.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { action } from '../actions/favoriteAction'
1717
import * as favoritesService from '../services/Favorites'
1818
import { registerFavoritesView } from './favorites'
1919

20+
// eslint-disable-next-line import/namespace
2021
const { Folder, getNavigation } = filesUtils
2122

2223
vi.mock('@nextcloud/axios')

0 commit comments

Comments
 (0)