@@ -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
0 commit comments