823b439d695ecbe41566b40d91a38382fae433b4
4 const assert
= require('assert');
5 const template
= require('../../../src/template/admin-topic-details-html');
6 const Config
= require('../../../config');
7 const lintHtml
= require('../../lint-html');
9 describe('Admin Topic Details HTML Template', function () {
12 beforeEach(function () {
19 config
= new Config('test');
22 it('renders', function () {
23 const result
= template(ctx
, config
);
27 it('covers null topic', function () {
29 ctx
.subscriptions
= null;
30 const result
= template(ctx
, config
);
34 it('covers missing subscriptions', function () {
35 delete ctx
.subscriptions
;
36 const result
= template(ctx
, config
);
40 it('covers plural subscriptions', function () {
41 ctx
.subscriptions
= [{}, {}, {}];
42 const result
= template(ctx
, config
);