diff --git a/.travis.yml b/.travis.yml index 4a83e22..fc15089 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: node_js node_js: - - "0.11" - - "0.10" - - "0.8" + - node + - lts/* diff --git a/test/dir/sock-cov b/test/dir/sock-cov new file mode 100644 index 0000000..e69de29 diff --git a/test/index.test.js b/test/index.test.js index adfe59f..f501b7a 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -53,8 +53,7 @@ describe("index.js", function () { serv.close(done); }); }); - /* - it('should return an jsc convert dir', function (done) { + xit('should return an jsc convert dir', function (done) { var source = path.join(__dirname, './dir'); var dest = path.join(__dirname, './dir-cov'); index.processFile(source, dest); @@ -65,7 +64,7 @@ describe("index.js", function () { done(); }); }); - it('should ignore exclude', function (done) { + xit('should ignore exclude', function (done) { var source = path.join(__dirname, './dir'); var dest = path.join(__dirname, './dir-cov'); index.processFile(source, dest, ['a2', /\.md$/i]); @@ -74,13 +73,10 @@ describe("index.js", function () { done(); }); }); - */ - it('should throw error when source and dest not currect', function () { - try { + it('should throw error when source and dest not correct', function () { + expect(function() { index.processFile(); - } catch (e) { - expect(e.message).to.match(/path must be a string/); - } + }).to.throwException(TypeError); }); it('should throw error when source and dest not currect', function () { function _empty() {