From fdc6509c73b1bb3a7e272886208990b9ba73fe38 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 21 May 2014 08:56:46 -0400 Subject: [PATCH] feature(util) render: add test --- test/lib/util.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/lib/util.js b/test/lib/util.js index 323faee3..c3d6c91f 100644 --- a/test/lib/util.js +++ b/test/lib/util.js @@ -100,6 +100,18 @@ }); + describe('render', function() { + it('should render template with object of params', function() { + var WORD = 'hello world', + word = Util.render('hello {{ name }}', { + name: 'world' + }); + + WORD.should.equal(word); + }); + + }); + }); })();