diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-22 23:52:38 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-22 23:52:38 +0100 |
commit | 13e2ff8035d9a93e4ee8eb79ec71ac92e6f2bf7e (patch) | |
tree | bcfab1bd74470e1788afac46fd6e27d98ef1834e | |
parent | 199e61e01c9cf1dd1a7d21862c2449a388036a1e (diff) | |
download | gitbook-13e2ff8035d9a93e4ee8eb79ec71ac92e6f2bf7e.zip gitbook-13e2ff8035d9a93e4ee8eb79ec71ac92e6f2bf7e.tar.gz gitbook-13e2ff8035d9a93e4ee8eb79ec71ac92e6f2bf7e.tar.bz2 |
Adapt test for paths to run on windows
-rw-r--r-- | test/paths.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/paths.js b/test/paths.js index c7929d3..339da51 100644 --- a/test/paths.js +++ b/test/paths.js @@ -1,3 +1,4 @@ +var path = require('path'); var pathUtils = require('../lib/utils/path'); describe('Paths', function() { @@ -9,8 +10,8 @@ describe('Paths', function() { }); it('should correctly change extension of path', function() { - pathUtils.setExtension('hello/test.md', '.html').should.be.equal('hello/test.html'); - pathUtils.setExtension('hello/test.md', '.json').should.be.equal('hello/test.json'); + pathUtils.setExtension('hello/test.md', '.html').should.be.equal(path.normalize('hello/test.html')); + pathUtils.setExtension('hello/test.md', '.json').should.be.equal(path.normalize('hello/test.json')); }); }); }); |