Merge pull request #1044 from strongloop/fix/kvao-promise

test/kvao: setup global.Promise on Node v0.10 [2.x only]
This commit is contained in:
Miroslav Bajtoš 2016-08-15 14:05:20 +02:00 committed by GitHub
commit df4a3643eb
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ var debug = require('debug')('test');
var fs = require('fs');
var path = require('path');
if (!global.Promise)
global.Promise = require('bluebird');
module.exports = function(dataSourceFactory, connectorCapabilities) {
describe('KeyValue API', function loadAllTestFiles() {
var testRoot = path.resolve(__dirname, 'kvao');