4 const assert
= require('assert');
5 const template
= require('../../../src/template/admin-maintenance-html');
6 const Config
= require('../../../config');
7 const StubLogger
= require('../../stub-logger');
8 const { makeHtmlLint
} = require('@squeep/html-template-helper');
9 const { HtmlValidate
} = require('html-validate');
11 const stubLogger
= new StubLogger();
12 const htmlValidate
= new HtmlValidate();
13 const lintHtml
= makeHtmlLint(stubLogger
, htmlValidate
);
15 describe('Admin Management HTML Template', function () {
17 beforeEach(function () {
20 event: 'exampleChore',
26 nextSchedule: new Date(),
30 config
= new Config('test');
32 it('renders', async
function () {
33 const result
= template(ctx
, config
);
34 await
lintHtml(result
);
37 it('covers failsafes', async
function () {
40 const result
= template(ctx
, config
);
41 await
lintHtml(result
);
44 }); // Admin Ticket HTML Template