Skip to content

Commit

Permalink
Add test for relative path and renderString
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Feb 10, 2015
1 parent 1b7dcc6 commit 103dd2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@
expect(child1.render()).to.be('FooTest1BazFizzle');
expect(child2.render()).to.be('FooTest2BazFizzle');
});

it('should handle correctly relative paths in renderString', function() {
var env = new Environment(new Loader(templatesPath));
expect(env.renderString('{% extends "./relative/test1.html" %}{% block block1 %}Test3{% endblock %}')).to.be('FooTest3BazFizzle');
});
});
})();

0 comments on commit 103dd2c

Please sign in to comment.