Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pc 478 meerdere contactmomenten registers klant #1042

Merged

typo

c65b6a7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Pc 478 meerdere contactmomenten registers klant #1042

typo
c65b6a7
Select commit
Loading
Failed to load commit list.
GitHub Actions / npm tests succeeded Feb 11, 2025 in 0s

31 passed, 0 failed and 0 skipped

Tests passed successfully

✅ testresults/vitest-junit.xml

31 tests were completed in 581ms with 31 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/test/helpers/validation.test.ts 12✅ 20ms
src/test/services/fetch-logged-in.test.ts 2✅ 188ms
src/test/services/pagination/pagination.test.ts 3✅ 71ms
src/test/services/pagination/parsePagination.test.ts 2✅ 7ms
src/test/services/service-data-enricher.test.ts 3✅ 27ms
src/test/services/service-data/fromFetcher.test.ts 1✅ 87ms
src/test/services/service-data/fromPromise.test.ts 3✅ 23ms
src/test/services/service-data/fromSubmitter.test.ts 3✅ 126ms
src/test/stores/create-store.test.ts 2✅ 30ms

✅ src/test/helpers/validation.test.ts

src/test/helpers/validation.test.ts
  ✅ parseDutchDate > should allow dd/MM/yyyy
  ✅ parseDutchDate > should allow d/M/yyyy
  ✅ parseDutchDate > should allow dd-MM-yyyy
  ✅ parseDutchDate > should allow d-M-yyyy
  ✅ parseDutchDate > should allow ddMMyyyy
  ✅ parseDutchDate > should return an error on invalid date
  ✅ parseDutchDate > should return an error on a non-date
  ✅ parseBsn > should allow a valid bsn
  ✅ parseBsn > should return an error on an invalid bsn
  ✅ parseBsn > should return an error on an invalid bsn
  ✅ TELEFOON_PATTERN > validates phone numbers correctly
  ✅ EMAIL_PATTERN > validates email addresses correctly

✅ src/test/services/fetch-logged-in.test.ts

src/test/services/fetch-logged-in.test.ts
  ✅ fetchLoggedIn > should resolve when a 200 response is returned
  ✅ fetchLoggedIn > should retry when a 401 response is returned

✅ src/test/services/pagination/pagination.test.ts

src/test/services/pagination/pagination.test.ts
  ✅ renders correctly with empty result
  ✅ renders correctly with a single page
  ✅ renders correctly with more than 5 pages and current  page somewhere in between

✅ src/test/services/pagination/parsePagination.test.ts

src/test/services/pagination/parsePagination.test.ts
  ✅ parsePagination > should return a paginationobject when used with a synchronous mapper
  ✅ parsePagination > should return a paginationobject when used with a asynchronous mapper

✅ src/test/services/service-data-enricher.test.ts

src/test/services/service-data-enricher.test.ts
  ✅ service-data-enricher > should attempt to retrieve data of type Right, when the input is of type Left
  ✅ service-data-enricher > should attempt to retrieve data of type Left, when the input is of type Right
  ✅ service-data-enricher > should return the input, in side dictated by the isLeft function. If Isleft returns the wrong answer the other side wil be empty

✅ src/test/services/service-data/fromFetcher.test.ts

src/test/services/service-data/fromFetcher.test.ts
  ✅ ServiceResult.fromFetcher > should return a ServiceData instance and put in in a success state after a promise is resolved.

✅ src/test/services/service-data/fromPromise.test.ts

src/test/services/service-data/fromPromise.test.ts
  ✅ ServiceResult.fromPromise > should return a ServiceData instance and put in in a success state after a promise is resolved.
  ✅ ServiceResult.fromPromise > should return a ServiceData instance and put in in a loading state when a promise is pending.
  ✅ ServiceResult.fromPromise > should return a ServiceData instance and put in in a error state after a promise is resolved.

✅ src/test/services/service-data/fromSubmitter.test.ts

src/test/services/service-data/fromSubmitter.test.ts
  ✅ ServiceResult.fromSubmitter > should return a ServiceData instance and put in in a success state after a promise is resolved.
  ✅ ServiceResult.fromSubmitter > should return a ServiceData instance and put in in a loading state when a promise is pending.
  ✅ ServiceResult.fromSubmitter > should return a ServiceData instance and put in in a error state after a promise is resolved.

✅ src/test/stores/create-store.test.ts

src/test/stores/create-store.test.ts
  ✅ create-store > should hold the model provided by a statefactory
  ✅ create-store > should return to the initial state after a reset