aabb9ace64c7ab3de414af804c12ed993168edbd
4 const assert
= require('node:assert');
5 const { IAHTML
} = require('../../../lib/template');
6 const lintHtml
= require('../../lint-html');
8 describe('Template IAHTML', function () {
10 beforeEach(function () {
17 selfBaseUrl: 'https://example.com/',
22 it('renders', async
function () {
23 ctx
.errors
= ['an error', 'another error'];
24 const result
= IAHTML(ctx
, options
);
25 await
lintHtml(result
);
29 it('covers empty error', async
function () {
30 const result
= IAHTML(ctx
, options
);
31 await
lintHtml(result
);