IndieAuth login support, allows viewing of topics related to profile
[websub-hub] / test / src / template / admin-ia-html.js
1 /* eslint-env mocha */
2 'use strict';
3
4 const assert = require('assert');
5 const template = require('../../../src/template/admin-ia-html');
6 const Config = require('../../../config');
7 const config = new Config('test');
8
9 describe('Admin Login HTML Template', function () {
10 let ctx;
11
12 beforeEach(function () {
13 ctx = {};
14 });
15
16 it('covers', function () {
17 ctx.errors = ['bad'];
18 const result = template(ctx, config);
19 assert(result);
20 });
21 it('covers empty', function () {
22 const result = template(ctx, config);
23 assert(result);
24 });
25 });