diff --git a/.jscs.json b/.jscs.json index c6d5947..7bc1a76 100644 --- a/.jscs.json +++ b/.jscs.json @@ -95,7 +95,7 @@ "test/data/**", "test/support/fakes/**" ], - "validateJSDoc": { + "jsDoc": { "checkParamNames": true, "requireParamTypes": true }, diff --git a/package.json b/package.json index 045b42b..45f3228 100644 --- a/package.json +++ b/package.json @@ -20,18 +20,18 @@ "author": "Bryan Donovan", "license": "MIT", "dependencies": { - "async": "^0.9.0", + "async": "^1.5.2", "lru-cache": "4.0.0" }, "devDependencies": { "coveralls": "^2.3.0", "es6-promise": "^3.0.2", - "istanbul": "^0.2.11", - "jscs": "^1.9.0", - "jsdoc": "^3.3.0", - "jshint": "^2.5.4", - "mocha": "^1.20.1", - "optimist": "^0.6.1", - "sinon": "^1.10.2" + "istanbul": "0.4.2", + "jscs": "2.11.0", + "jsdoc": "3.3.0", + "jshint": "2.9.1", + "mocha": "2.4.5", + "optimist": "0.6.1", + "sinon": "1.17.3" } } diff --git a/test/stores/memory.unit.js b/test/stores/memory.unit.js index b031b78..0402249 100644 --- a/test/stores/memory.unit.js +++ b/test/stores/memory.unit.js @@ -12,11 +12,18 @@ describe("memory store", function() { describe("set()", function() { var memoryCache; + var origPromise; beforeEach(function() { + origPromise = global.Promise; + delete global.Promise; memoryCache = memoryStore.create({noPromises: true}); }); + afterEach(function() { + global.Promise = origPromise; + }); + // This test should pass in node v0.10.x: it("does not require a callback or use of Promises", function(done) { memoryCache.set('foo', 'bar');