Browse Source

wrapping getWidget() with nextTick in tests

feature/specify-what-to-cache
Bryan Donovan 10 years ago
parent
commit
11311baef1
  1. 2
      test/caching.unit.js
  2. 2
      test/multi_caching.unit.js

2
test/caching.unit.js

@ -10,7 +10,9 @@ var memoryStore = require('../lib/stores/memory');
var methods = {
getWidget: function(name, cb) {
process.nextTick(function() {
cb(null, {name: name});
});
}
};

2
test/multi_caching.unit.js

@ -9,7 +9,9 @@ var memoryStore = require('../lib/stores/memory');
var methods = {
getWidget: function(name, cb) {
process.nextTick(function() {
cb(null, {name: name});
});
}
};

Loading…
Cancel
Save