X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Froot-html.js;h=36c7b44a5cacdcd4f1f7c2fccff7d8bfd8e3d847;hp=f48cb0828dcb16488aaf36ed2f02f32d089eda75;hb=3c547e314b79a31fb3f15412a47707a22dc3eefd;hpb=4807a77eca2858e8dc23d9ec2247a778814988d7 diff --git a/test/src/template/root-html.js b/test/src/template/root-html.js index f48cb08..36c7b44 100644 --- a/test/src/template/root-html.js +++ b/test/src/template/root-html.js @@ -4,6 +4,7 @@ const assert = require('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); });