Browse Source

npm bumps, making sure global.Promise is not defined in node 0.10 memory store test

1.5.1
Bryan Donovan 9 years ago
parent
commit
585f8ba0cc
  1. 2
      .jscs.json
  2. 16
      package.json
  3. 7
      test/stores/memory.unit.js

2
.jscs.json

@ -95,7 +95,7 @@
"test/data/**",
"test/support/fakes/**"
],
"validateJSDoc": {
"jsDoc": {
"checkParamNames": true,
"requireParamTypes": true
},

16
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"
}
}

7
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');

Loading…
Cancel
Save