Initial import of verae-staff-ui from zapier monorepo

This commit is contained in:
George Lambert 2026-09-11 19:55:13 -04:00
commit a97c5127d8
7 changed files with 216 additions and 0 deletions

11
test/load.test.js Normal file
View file

@ -0,0 +1,11 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { loadReviewHtml } from '../src/load.js';
test('fills title kicker lede', () => {
const html = loadReviewHtml({ title: 'Staff access', kicker: 'staff plane', lede: 'After authz.' });
assert.match(html, /Staff access/);
assert.match(html, /staff plane/);
assert.match(html, /After authz/);
assert.doesNotMatch(html, /\{\{TITLE\}\}/);
});