diff --git a/package.json b/package.json index cc78787..3cba6ba 100644 --- a/package.json +++ b/package.json @@ -49,12 +49,11 @@ "ecc-jsbn": "~0.1.1", "bcrypt-pbkdf": "^1.0.0" }, - "optionalDependencies": { - }, + "optionalDependencies": {}, "devDependencies": { "tape": "^3.5.0", "benchmark": "^1.0.0", - "sinon": "^1.17.2", + "sinon": "^8.1.1", "temp": "^0.8.2" } } diff --git a/test/dhe_compat.js b/test/dhe_compat.js index 59c2cdf..c521a78 100644 --- a/test/dhe_compat.js +++ b/test/dhe_compat.js @@ -23,7 +23,7 @@ var testDir = path.join(__dirname, 'assets'); var sandbox; test('set up sandbox', function (t) { - sandbox = sinon.sandbox.create(); + sandbox = sinon.createSandbox(); sandbox.stub(crypto, 'createECDH'); t.ok(crypto.createECDH('prime256v1') === undefined);