diff options
Diffstat (limited to 'test/paths.js')
-rw-r--r-- | test/paths.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/paths.js b/test/paths.js deleted file mode 100644 index 339da51..0000000 --- a/test/paths.js +++ /dev/null @@ -1,17 +0,0 @@ -var path = require('path'); -var pathUtils = require('../lib/utils/path'); - -describe('Paths', function() { - - describe('setExtension', function() { - it('should correctly change extension of filename', function() { - pathUtils.setExtension('test.md', '.html').should.be.equal('test.html'); - pathUtils.setExtension('test.md', '.json').should.be.equal('test.json'); - }); - - it('should correctly change extension of path', function() { - 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')); - }); - }); -}); |