diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /test/paths.js | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
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')); - }); - }); -}); |