X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=test%2Fsrc%2Ftemplate%2Fadmin-topic-details-html.js;fp=test%2Fsrc%2Ftemplate%2Fadmin-topic-details-html.js;h=4b8c0dd832ef9cd28d3e996848ffae3c1746ca60;hp=52a8ed8e8b50d9e86f378c6d69298109c4286708;hb=d0444b4b0ee8166d911e6b227218d110eb7eddf1;hpb=728dc0686aa5282e7fc9473c92fbbc617a2b93d7 diff --git a/test/src/template/admin-topic-details-html.js b/test/src/template/admin-topic-details-html.js index 52a8ed8..4b8c0dd 100644 --- a/test/src/template/admin-topic-details-html.js +++ b/test/src/template/admin-topic-details-html.js @@ -22,6 +22,12 @@ describe('Admin Topic Details HTML Template', function () { const result = template(ctx, config); assert(result); }); + it('covers null topic', function () { + ctx.topic = null; + ctx.subscriptions = null; + const result = template(ctx, config); + assert(result); + }); it('covers missing subscriptions', function () { delete ctx.subscriptions; const result = template(ctx, config); @@ -32,5 +38,4 @@ describe('Admin Topic Details HTML Template', function () { const result = template(ctx, config); assert(result); }); - });