1f997827cddc59e604a86ff4bcf4e118751af55d
4 const assert
= require('node:assert');
5 const template
= require('../../../src/template/admin-overview-html');
6 const Config
= require('../../../config');
7 const lintHtml
= require('../../lint-html');
9 describe('Admin Overview HTML Template', function () {
12 beforeEach(function () {
14 config
= new Config('test');
17 it('covers missing topics', async
function () {
18 const result
= template(ctx
, config
);
19 await
lintHtml(result
);
22 it('covers single topic', async
function () {
24 const result
= template(ctx
, config
);
25 await
lintHtml(result
);
28 it('covers plural topics', async
function () {
29 ctx
.topics
= [{}, {}, {}];
30 const result
= template(ctx
, config
);
31 await
lintHtml(result
);