diff options
Diffstat (limited to 'test/location.js')
-rw-r--r-- | test/location.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/location.js b/test/location.js index 2f209e0..3e2294e 100644 --- a/test/location.js +++ b/test/location.js @@ -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'); }); }); }); |