Permalink
Browse files

Add test for rendering dust templates

This commit adds a test for the new template engine `dust` which was added
in PR #78.
  • Loading branch information...
1 parent 59f58a9 commit f3da370a0c32e7a147bc583f060492d45dcfb917 @jasonsims jasonsims committed Jul 5, 2014
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/testTemplateManager.js
@@ -96,6 +96,21 @@ describe('Template manager', function() {
})
})
+ it('should render dust', function(done) {
+ var opts = {
+ locals: {item: 'test'},
+ filename: 'test.dust',
+ source: '<h1>{item}\n</h1><h1>{engine}</h1>'
+ }
+
+ tm.render(opts, function(err, res) {
+ expect(err).to.be.null;
+ expect(res).to.equal('<h1>test</h1><h1>.dust</h1>');
+
+ done()
+ })
+ })
+
it('should render less', function(done) {
var opts = {
locals : {},

0 comments on commit f3da370

Please sign in to comment.