X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Fadmin-overview-html.js;h=1e715d28dd686630bfdcd7de2797661dd91adacc;hp=5fa0a0e1bb903d303052e2de4ceecf846b32b9bf;hb=3c547e314b79a31fb3f15412a47707a22dc3eefd;hpb=4807a77eca2858e8dc23d9ec2247a778814988d7 diff --git a/test/src/template/admin-overview-html.js b/test/src/template/admin-overview-html.js index 5fa0a0e..1e715d2 100644 --- a/test/src/template/admin-overview-html.js +++ b/test/src/template/admin-overview-html.js @@ -4,27 +4,31 @@ const assert = require('assert'); const template = require('../../../src/template/admin-overview-html'); const Config = require('../../../config'); -const config = new Config('test'); +const lintHtml = require('../../lint-html'); describe('Admin Overview HTML Template', function () { - let ctx; + let ctx, config; beforeEach(function () { ctx = {}; + config = new Config('test'); }); it('covers missing topics', function () { const result = template(ctx, config); + lintHtml(result); assert(result); }); it('covers single topic', function () { ctx.topics = [{}]; const result = template(ctx, config); + lintHtml(result); assert(result); }); it('covers plural topics', function () { ctx.topics = [{}, {}, {}]; const result = template(ctx, config); + lintHtml(result); assert(result); }); });