(over: Partial<Extract<WireItem, { kind: 'block' }>>)
| 268 | it('names each kind of run', () => { |
| 269 | const via = { id: 'f', kind: 'function' as const, name: 'gen', qualifiedName: 'gen', file: 'a.js', line: 1, endLine: 2, language: 'javascript', test: false }; |
| 270 | const block = (over: Partial<Extract<WireItem, { kind: 'block' }>>) => runWords({ kind: 'block', block: 'inline', body: [], ...over } as Extract<WireItem, { kind: 'block' }>); |
| 271 | expect(block({ via })).toBe('via gen'); |
| 272 | expect(block({})).toBe('via a helper'); |
| 273 | expect(block({ block: 'later', by: 'then' })).toBe('later · then'); |
no test coverage detected