Fix some path normalization on windows

This commit is contained in:
Samy Pessé
2016-02-25 19:15:47 +01:00
parent 73f22332ec
commit 80718cc783
3 changed files with 11 additions and 3 deletions
+5
View File
@@ -45,6 +45,11 @@ describe('Location', function() {
location.toAbsolute('/test.md', './', './').should.be.equal('test.md');
location.toAbsolute('/test.md', 'test', 'test').should.be.equal('../test.md');
location.toAbsolute('/sub/test.md', 'test', 'test').should.be.equal('../sub/test.md');
location.toAbsolute('/test.png', 'folder', '').should.be.equal('test.png');
});
it('should correctly handle absolute path (windows)', function() {
location.toAbsolute('\\test.png', 'folder', '').should.be.equal('test.png');
});
});
});