IndieAuth login support, allows viewing of topics related to profile
[websub-hub] / test / src / template / admin-topic-details-html.js
index 52a8ed8e8b50d9e86f378c6d69298109c4286708..4b8c0dd832ef9cd28d3e996848ffae3c1746ca60 100644 (file)
@@ -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);
   });
-
 });