X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Fadmin-ia-html.js;fp=test%2Fsrc%2Ftemplate%2Fadmin-ia-html.js;h=d909389b45c8c9989558995f5ddcc22867ba8b00;hp=0000000000000000000000000000000000000000;hb=d0444b4b0ee8166d911e6b227218d110eb7eddf1;hpb=728dc0686aa5282e7fc9473c92fbbc617a2b93d7 diff --git a/test/src/template/admin-ia-html.js b/test/src/template/admin-ia-html.js new file mode 100644 index 0000000..d909389 --- /dev/null +++ b/test/src/template/admin-ia-html.js @@ -0,0 +1,25 @@ +/* eslint-env mocha */ +'use strict'; + +const assert = require('assert'); +const template = require('../../../src/template/admin-ia-html'); +const Config = require('../../../config'); +const config = new Config('test'); + +describe('Admin Login HTML Template', function () { + let ctx; + + beforeEach(function () { + ctx = {}; + }); + + it('covers', function () { + ctx.errors = ['bad']; + const result = template(ctx, config); + assert(result); + }); + it('covers empty', function () { + const result = template(ctx, config); + assert(result); + }); +});