[Pkg-javascript-commits] [node-tap] 122/186: Bluebird is not required

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit 141b46a4305e33aed6643bd1e1de611de556505f
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sun Sep 10 23:15:47 2017 +0200

    Bluebird is not required
    
    Forwarded: no
---
 lib/test.js                                   | 1 -
 package.json                                  | 1 -
 test-legacy/test/before-after-each-promise.js | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/test.js b/lib/test.js
index 9968af4..f5a3d84 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -36,7 +36,6 @@ const assert = require('assert')
 const util = require('util')
 const ownOr = require('own-or')
 const ownOrEnv = require('own-or-env')
-const Promise = require('bluebird')
 const bindObj = require('bind-obj-methods')
 const cwd = process.cwd()
 
diff --git a/package.json b/package.json
index 208e939..1f84a42 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,6 @@
   },
   "dependencies": {
     "bind-obj-methods": "^1.0.0",
-    "bluebird": "^3.5.1",
     "clean-yaml-object": "^0.1.0",
     "supports-color" : "^3",
     "foreground-child": "^1.3.3",
diff --git a/test-legacy/test/before-after-each-promise.js b/test-legacy/test/before-after-each-promise.js
index f9aa340..addb6f6 100644
--- a/test-legacy/test/before-after-each-promise.js
+++ b/test-legacy/test/before-after-each-promise.js
@@ -1,5 +1,5 @@
 var t = require('../..')
-var Promise = require('bluebird')
+if (typeof Promise === 'undefined') { Promise = require('bluebird') }
 
 t.beforeEach(function (cb) {
   var self = this

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list