X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=test%2Flib%2Ftemplate-helper.js;fp=test%2Flib%2Ftemplate-helper.js;h=58985ccd962683f175f29a879a189d708b913335;hp=fa3f86a33a7517bbdee59626cc6de2f92218ac55;hb=a2c0e2fc57bb8f25f694e16eb4e51d6970b28829;hpb=04484918ab107b834e16ba6918eaa3da80c6b29f
diff --git a/test/lib/template-helper.js b/test/lib/template-helper.js
index fa3f86a..58985cc 100644
--- a/test/lib/template-helper.js
+++ b/test/lib/template-helper.js
@@ -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 () {