()
| 32 | const HERE = dirname(fileURLToPath(import.meta.url)); |
| 33 | |
| 34 | function view(): FlowView { |
| 35 | const closure = JSON.parse(readFileSync( |
| 36 | join(HERE, '__fixtures__', 'closure-userService-create.json'), |
| 37 | 'utf8', |
| 38 | )) as ClosureDocument; |
| 39 | const ir = (name: string): SemanticIR => JSON.parse(readFileSync( |
| 40 | join(HERE, '..', 'twin', '__fixtures__', `ir-${name}.json`), |
| 41 | 'utf8', |
| 42 | )) as SemanticIR; |
| 43 | return buildFlowView({ |
| 44 | closure, |
| 45 | irs: [ir('userService-create'), ir('createUser'), ir('listUsers'), ir('validateUser'), ir('insert')], |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | describe('das Sequenzdiagramm als Geometrie', () => { |
| 50 | const flow = view(); |
no test coverage detected