3 const assert
= require('assert');
4 const template
= require('../../../src/template/admin-maintenance-html');
5 const Config
= require('../../../config');
6 const StubLogger
= require('../../stub-logger');
7 const { makeHtmlLint
} = require('@squeep/html-template-helper');
8 const { HtmlValidate
} = require('html-validate');
10 const stubLogger
= new StubLogger();
11 const htmlValidate
= new HtmlValidate();
12 const lintHtml
= makeHtmlLint(stubLogger
, htmlValidate
);
14 describe('Admin Management HTML Template', function () {
16 beforeEach(function () {
19 event: 'exampleChore',
25 nextSchedule: new Date(),
29 config
= new Config('test');
31 it('renders', async
function () {
32 const result
= template(ctx
, config
);
33 await
lintHtml(result
);
36 it('covers failsafes', async
function () {
39 const result
= template(ctx
, config
);
40 await
lintHtml(result
);
43 }); // Admin Ticket HTML Template