mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(util) render: add test
This commit is contained in:
parent
b6d8b1a297
commit
fdc6509c73
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue