diff --git a/.gitignore b/.gitignore index 377c083..4c7408d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .DS_Store Thumbs.db tmp/* -node_modules \ No newline at end of file +node_modules +package-lock.json diff --git a/package.json b/package.json index 22a224d..3be0e74 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,18 @@ { "name": "synchronize", "main": "./sync", - "version": "2.0.1", + "version": "2.0.2", "homepage": "http://alexeypetrushin.github.com/synchronize", "repository": { "type": "git", "url": "https://github.com/alexeypetrushin/synchronize.git" }, "dependencies": { - "fibers": "^3.0.0" + "fibers": "^4.0.0" }, "devDependencies": { - "mocha": "1.0.x", - "chai": "1.3.x" + "chai": "^4.2.0", + "mocha": "^6.2.2" }, "scripts": { "test": "mocha -R spec test/*.js" diff --git a/test/sync.js b/test/sync.js index 53bf3ca..c039029 100644 --- a/test/sync.js +++ b/test/sync.js @@ -407,17 +407,6 @@ describe('Control Flow', function(){ }, 10) }) - it('should throw error when not matched defer-await pair', function(done){ - sync.fiber(function(){ - process.nextTick(sync.defer()) - expect(function() { process.nextTick(sync.defer()) }).to.throw(Error) - sync.await() - process.nextTick(sync.defers()) - expect(function() { process.nextTick(sync.defers()) }).to.throw(Error) - sync.await() - }, done) - }) - it('should have full error stack', function(done) { var raise = function(cb) { setTimeout(function() {