Skip to content

Commit

Permalink
Switch to unexpected-bluebird.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 1, 2016
1 parent 2b1e384 commit 9659fee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = require('./Unexpected').create()
.use(require('./assertions'));

// Add an inspect method to all the promises we return that will make the REPL, console.log, and util.inspect render it nicely in node.js:
require('bluebird').prototype.inspect = function () {
require('unexpected-bluebird').prototype.inspect = function () {
return module.exports.createOutput(require('magicpen').defaultFormat).appendInspected(this).toString();
};
2 changes: 1 addition & 1 deletion lib/makePromise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Promise = require('bluebird');
var Promise = require('unexpected-bluebird');
var oathbreaker = require('./oathbreaker');
var throwIfNonUnexpectedError = require('./throwIfNonUnexpectedError');

Expand Down
2 changes: 1 addition & 1 deletion lib/oathbreaker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var workQueue = require('./workQueue');
var Promise = require('bluebird');
var Promise = require('unexpected-bluebird');
module.exports = function oathbreaker(value) {
if (!value || typeof value.then !== 'function') {
return value;
Expand Down
2 changes: 1 addition & 1 deletion lib/workQueue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Promise = require('bluebird');
var Promise = require('unexpected-bluebird');

var workQueue = {
queue: [],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"dependencies": {
"array-changes": "1.3.0",
"array-changes-async": "2.1.0",
"bluebird": "2.9.34",
"detect-indent": "3.0.1",
"diff": "1.1.0",
"leven": "1.0.0",
"magicpen": "5.6.0"
"magicpen": "5.6.0",
"unexpected-bluebird": "2.9.34"
},
"devDependencies": {
"browserify": "5.9.1",
Expand Down

0 comments on commit 9659fee

Please sign in to comment.