Skip to content

Commit

Permalink
Added test to confirm that path seperators are always *NIX, irrespect…
Browse files Browse the repository at this point in the history
…ive of precompiling platform
  • Loading branch information
kim3er committed May 18, 2016
1 parent 618234b commit 4150590
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/precompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,19 @@
it('should return a string', function() {
expect(precompileString('{{ test }}', { name: 'test.j2' })).to.be.an('string');
});

describe('templates', function() {
it('should return *NIX path seperators', function() {
var fileName;

precompile('./tests/templates/item.j2', {
wrapper: function(templates) {
fileName = templates[0].name;
}
});

expect(fileName).to.not.contain('\\');
});
});
});
})();

0 comments on commit 4150590

Please sign in to comment.