diff --git a/package.json b/package.json index ab47b61..203181a 100644 --- a/package.json +++ b/package.json @@ -40,11 +40,11 @@ "node": "*" }, "devDependencies": { - "mocha": "*", - "should": "*", - "sax": "*", - "async": "*", - "sinon": "*" + "async": "^2.6.0", + "mocha": "^5.0.0", + "sax": "^1.2.4", + "should": "^13.2.1", + "sinon": "^4.2.1" }, "scripts": { "test": "node test-runner.js", diff --git a/test/atoms-cache.js b/test/atoms-cache.js index 76c315e..aef76a5 100644 --- a/test/atoms-cache.js +++ b/test/atoms-cache.js @@ -94,7 +94,7 @@ describe('Atoms and atom names cache', function() { function(err) { should.not.exist(err); should.exist(my_name); - self.spy.reset(); + self.spy.resetHistory(); self.X.InternAtom(true, my_name, function(err, atom) { should.not.exist(err); my_atom.should.equal(atom); diff --git a/test/core-KillKlient.js b/test/core-KillKlient.js index 58387d5..d8125c0 100644 --- a/test/core-KillKlient.js +++ b/test/core-KillKlient.js @@ -11,7 +11,7 @@ describe('KillKlient request', function() { should.not.exist(err); display = dpy; X = display.client; - root = display.screen[0].root; + var root = display.screen[0].root; var eventMask = x11.eventMask.SubstructureNotify; X.ChangeWindowAttributes(root, { eventMask: eventMask }); done();