// Generated, do not edit. sha256:da5a18d6a0bc54d00b68ce5ce60b1415a99e474e0a0bf30235954a3ad3d1cb69 import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; const { taskCardHtml, nothingPendingHtml } = await import('../../client/ui/task-card.js'); describe('taskCardHtml: the shell', () => { it('wraps title and body in one card', () => { const html = taskCardHtml({ title: 'Meldingen', body: '
drie
' }); assert.match(html, /^drie<\/p>/); assert.match(html, /<\/div>$/); }); it('leaves out the header row when there are no actions', () => { const html = taskCardHtml({ title: 'Meldingen', body: 'x' }); assert.doesNotMatch(html, /task-card-head/); }); it('adds the header row as soon as there are actions, with the label inside it', () => { const html = taskCardHtml({ title: 'Afstemmen', actions: '', body: 'x' }); assert.match(html, /