X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Froot-html.js;h=3f98be2b7c25d2e6f501bb8ca1dfcc82a8625ceb;hb=1c37a7c533a5530390489ea9a49dcca492db1074;hp=f48cb0828dcb16488aaf36ed2f02f32d089eda75;hpb=9696c012e6b9a6c58904baa397ca0ebf78112316;p=websub-hub diff --git a/test/src/template/root-html.js b/test/src/template/root-html.js index f48cb08..3f98be2 100644 --- a/test/src/template/root-html.js +++ b/test/src/template/root-html.js @@ -1,9 +1,10 @@ /* eslint-env mocha */ 'use strict'; -const assert = require('assert'); +const assert = require('node:assert'); const template = require('../../../src/template/root-html'); const Config = require('../../../config'); +const lintHtml = require('../../lint-html'); describe('Root HTML Template', function () { let ctx, config; @@ -15,12 +16,14 @@ describe('Root HTML Template', function () { it('renders', function () { const result = template(ctx, config); + lintHtml(result); assert(result); }); it('covers options', function () { delete config.dingus.selfBaseUrl; const result = template(ctx, config); + lintHtml(result); assert(result); }); @@ -28,6 +31,7 @@ describe('Root HTML Template', function () { config.adminContactHTML = '
support
'; config.manager.publicHub = false; const result = template(ctx, config); + lintHtml(result); assert(result); });