-
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.
Merge pull request #60 from ConductionNL/feature/PC108-97/contact-mom…
…ent-klant feature/PC108-97/contact-moment-klant
- Loading branch information
Showing
18 changed files
with
397 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export type TRol = { | ||
id?: string; | ||
uuid: string; | ||
omschrijving: string; | ||
omschrijvingGeneriek: string; | ||
|
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 was deleted.
Oops, something went wrong.
72 changes: 36 additions & 36 deletions
72
src/store/modules/rol.spec.js → src/store/modules/rol.spec.ts
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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
/* eslint-disable no-console */ | ||
import { setActivePinia, createPinia } from 'pinia' | ||
|
||
import { useZaakStore } from './zaken.js' | ||
import { Zaak, mockZaak } from '../../entities/index.js' | ||
|
||
describe('Zaak Store', () => { | ||
beforeEach(() => { | ||
setActivePinia(createPinia()) | ||
}) | ||
|
||
it('sets zaak item correctly', () => { | ||
const store = useZaakStore() | ||
|
||
store.setZaakItem(mockZaak()[0]) | ||
|
||
expect(store.zaakItem).toBeInstanceOf(Zaak) | ||
expect(store.zaakItem).toEqual(mockZaak()[0]) | ||
|
||
expect(store.zaakItem.validate().success).toBe(true) | ||
}) | ||
|
||
it('sets zaken list correctly', () => { | ||
const store = useZaakStore() | ||
|
||
store.setZakenList(mockZaak()) | ||
|
||
expect(store.zakenList).toHaveLength(mockZaak().length) | ||
|
||
store.zakenList.forEach((item, index) => { | ||
expect(item).toBeInstanceOf(Zaak) | ||
expect(item).toEqual(mockZaak()[index]) | ||
expect(item.validate().success).toBe(true) | ||
}) | ||
}) | ||
}) | ||
/* eslint-disable no-console */ | ||
import { setActivePinia, createPinia } from 'pinia' | ||
|
||
import { useZaakStore } from './zaken.js' | ||
import { Zaak, mockZaak } from '../../entities/index.js' | ||
|
||
describe('Zaak Store', () => { | ||
beforeEach(() => { | ||
setActivePinia(createPinia()) | ||
}) | ||
|
||
it('sets zaak item correctly', () => { | ||
const store = useZaakStore() | ||
|
||
store.setZaakItem(mockZaak()[0]) | ||
|
||
expect(store.zaakItem).toBeInstanceOf(Zaak) | ||
expect(store.zaakItem).toEqual(mockZaak()[0]) | ||
|
||
expect(store.zaakItem.validate().success).toBe(true) | ||
}) | ||
|
||
it('sets zaken list correctly', () => { | ||
const store = useZaakStore() | ||
|
||
store.setZakenList(mockZaak()) | ||
|
||
expect(store.zakenList).toHaveLength(mockZaak().length) | ||
|
||
store.zakenList.forEach((item, index) => { | ||
expect(item).toBeInstanceOf(Zaak) | ||
expect(item).toEqual(mockZaak()[index]) | ||
expect(item.validate().success).toBe(true) | ||
}) | ||
}) | ||
}) |
Oops, something went wrong.