From 9d0d41d660731e3bfd25021386940c4cc2879620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 12 Aug 2016 16:33:05 +0200 Subject: [PATCH] test/kvao: setup global.Promise on Node v0.10 When running the tests on Node v0.10, setup `global.Promise` with Bluebird implementation. That way we don't have to run this setup in the test suite of each kv connector. --- test/kvao.suite.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/kvao.suite.js b/test/kvao.suite.js index 77bc886c..895714bd 100644 --- a/test/kvao.suite.js +++ b/test/kvao.suite.js @@ -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');