The commit “A review card handed over can wait for its contributor to respond” (ccf0ac27) already corrected the test data: state: 'review' became 'waiting' and source: 'canvas' became 'manual'. The test checks the same thing as before: a follow-up's dashed line disappears once a wait joins the two cards.
@@ -8,8 +8,8 @@ const ws: Item = { id: 'w', kind: 'task', state: 'live', title: 'Cart model', bo
const face = (item: Item, chip?: boolean) => renderToStaticMarkup(createElement(CardFace, { item, chip }));
test('a follow-up shows the dashed line to its card only while no wait joins the two', () => {
- const origin: Item = { id: 'o', kind: 'task', state: 'review', title: 'Origin', body: '', x: 0, y: 0, source: 'canvas', repo: 'shop' };
- const next: Item = { id: 'n', kind: 'task', state: 'planned', title: 'Follow-up', body: '', x: 0, y: 300, source: 'canvas', repo: 'shop', from: 'o' };
+ const origin: Item = { id: 'o', kind: 'task', state: 'waiting', title: 'Origin', body: '', x: 0, y: 0, source: 'manual', repo: 'shop' };
+ const next: Item = { id: 'n', kind: 'task', state: 'planned', title: 'Follow-up', body: '', x: 0, y: 300, source: 'manual', repo: 'shop', from: 'o' };
const placed = [origin, next].map((item) => ({ item, b: { x: item.x, y: item.y, w: 300, h: 136 } }));
const lines = (waits: [string, string][]) => (renderToStaticMarkup(createElement(Links, { placed, waits, standsFor: (id: string) => id })).match(/<path/g) ?? []).length;
expect(lines([])).toBe(1);
$ tsc --noEmit
4 pass 0 fail 32 expect() calls Ran 4 tests across 1 file. [131.00ms]