diff --git a/src/composables/__tests__/useNavigation.spec.js.kk b/src/composables/__tests__/useNavigation.spec.js.kk deleted file mode 100644 index e633d46c4..000000000 --- a/src/composables/__tests__/useNavigation.spec.js.kk +++ /dev/null @@ -1,43 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { useNavigation } from '../useNavigation'; -const navigation = useNavigation(); - -describe('useNavigation', () => { - it('should return the routes for all modules', async () => { - expect(navigation.modules.value.length).toBeGreaterThan(1); - }); - - it('should return a proper formated object without the children property', async () => { - const expectedMenuItem = { - stateName: 'Dashboard', - name: 'dashboard', - roles: [], - icon: 'dashboard', - title: 'dashboard' - } - - const firstMenuItem = navigation.modules.value[0] - expect(firstMenuItem.children).toBeUndefined(); - expect(firstMenuItem).toEqual(expect.objectContaining(expectedMenuItem)); - }); - - it('should return a proper formated object with two child items', async () => { - const expectedMenuItem = [{ - name: 'CustomerList', - title: 'list', - icon: 'view_list', - stateName: 'CustomerList' - }, - { - name: 'CustomerCreate', - title: 'createCustomer', - icon: 'vn:addperson', - stateName: 'CustomerCreate', - roles: ['developer'] - }]; - - const secondMenuItem = navigation.modules.value[1] - expect(secondMenuItem.children).toEqual(expect.arrayContaining(expectedMenuItem)); - expect(secondMenuItem.children.length).toEqual(2) - }); -}); \ No newline at end of file