-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISDEV-6143 Add 'documentType category (#70)
- Loading branch information
1 parent
aafb8f1
commit 37e876a
Showing
6 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { describe, expect, it } from 'vitest' | ||
import ComboboxItemService from '@/services/comboboxItemService.ts' | ||
import { ref } from 'vue' | ||
import type { ComboboxItem } from '@/components/input/types.ts' | ||
|
||
describe('comboboxItemService', () => { | ||
it('getDocumentTypes.data', () => { | ||
const documentTypes = ComboboxItemService.getDocumentTypes(ref('')) | ||
|
||
expect(documentTypes.data.value as ComboboxItem[]).toEqual( | ||
expect.arrayContaining([<ComboboxItem>{ label: 'VR', value: { label: 'VR' } }]), | ||
) | ||
}) | ||
|
||
it('getDocumentTypes.execute', async () => { | ||
const documentTypes = ComboboxItemService.getDocumentTypes(ref('')) | ||
|
||
const executionResult = await documentTypes.execute() | ||
|
||
expect(executionResult.data.value).toEqual(documentTypes.data.value) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters