One-time prettier --write so the new format:check CI gate starts green. .prettierignore excludes generated (api-client.ts, documentation.json), vendored (public/cibg-huisstijl), and backend (dotnet format owns it). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
754 B
TypeScript
23 lines
754 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { blockActions } from './block-actions';
|
|
|
|
describe('blockActions', () => {
|
|
it('a Concept can be resumed or cancelled', () => {
|
|
expect(blockActions({ tag: 'Concept', stepIndex: 1, stepCount: 3 })).toEqual([
|
|
'resume',
|
|
'cancel',
|
|
]);
|
|
});
|
|
|
|
it('an in-behandeling aanvraag only exposes its documents', () => {
|
|
expect(blockActions({ tag: 'InBehandeling', referentie: 'BIG-1', manual: true })).toEqual([
|
|
'viewDocuments',
|
|
]);
|
|
});
|
|
|
|
it('resolved aanvragen have no actions', () => {
|
|
expect(blockActions({ tag: 'Goedgekeurd', referentie: 'BIG-1' })).toEqual([]);
|
|
expect(blockActions({ tag: 'Afgewezen', referentie: 'BIG-1', reden: 'x' })).toEqual([]);
|
|
});
|
|
});
|