X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Fadmin-login-html.js;fp=test%2Fsrc%2Ftemplate%2Fadmin-login-html.js;h=661efd95a5b096b6d4119e135598c2925b84dae3;hb=d0444b4b0ee8166d911e6b227218d110eb7eddf1;hp=0000000000000000000000000000000000000000;hpb=728dc0686aa5282e7fc9473c92fbbc617a2b93d7;p=websub-hub diff --git a/test/src/template/admin-login-html.js b/test/src/template/admin-login-html.js new file mode 100644 index 0000000..661efd9 --- /dev/null +++ b/test/src/template/admin-login-html.js @@ -0,0 +1,26 @@ +/* eslint-env mocha */ +'use strict'; + +const assert = require('assert'); +const template = require('../../../src/template/admin-login-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']; + ctx.clientProtocol = 'https'; + const result = template(ctx, config); + assert(result); + }); + it('covers empty', function () { + const result = template(ctx, config); + assert(result); + }); +});