add initContext helper to set fields we expect to be present
[squeep-html-template-helper] / test / lib / template-helper.js
index fa3f86a33a7517bbdee59626cc6de2f92218ac55..58985ccd962683f175f29a879a189d708b913335 100644 (file)
@@ -21,6 +21,16 @@ describe('Template Helper', function () {
     options = {};
   });
 
+  describe('initContext', function () {
+    it('covers', function () {
+      th.initContext(ctx);
+      assert(ctx.errors);
+      assert(ctx.notifications);
+      assert(Array.isArray(ctx.errors));
+      assert(Array.isArray(ctx.notifications));
+    });
+  }); // initContext
+
   describe('dateOrNot', function () {
     let date, otherwise;
     beforeEach(function () {