Skip to content

Commit 376f551

Browse files
committedMay 26, 2016
further adjust bluebird tests
1 parent 106e405 commit 376f551

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "common-errors",
33
"author": "David Fenster <david@dfenster.com>",
44
"description": "Common error classes and utility functions",
5-
"version": "0.5.5",
5+
"version": "0.5.6",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/shutterstock/node-common-errors.git"

‎tests/already-in-use.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe(name, function(){
1414

1515
var caught_error_in_promise = false;
1616
var promise = new Promise(function(res, rej) { res(true); }).then(function(){
17-
throw new opts.extends("test error");
17+
throw new Err("test error");
1818
}).catch(Error, function(e){
1919
caught_error_in_promise = true;
2020
}).finally(function(){
@@ -23,3 +23,4 @@ describe(name, function(){
2323

2424
});
2525
});
26+

‎tests/http-status.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var HttpStatusError = require('../').HttpStatusError;
44
describe("HttpStatusError", function(){
55
function performBasicAssertions(error){
66
assert.equal(error.name, "HttpStatusError"), 'Its name is correct.';
7-
console.log(error, error.stack)
87
assert.ok(new RegExp(error.name + ": " + error.message.replace(/\)/g, '\\)').replace(/\(/g, '\\(') + "\n(.*\n)+").test(error.stack), "Stack is good");
98
assert.ok(error instanceof Error, Error, "It is an instanceof Error");
109
}

‎tests/support/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports.testError = function testError(name, opts){
1919

2020
var caught_error_in_promise = false;
2121
var promise = new Promise(function(res, rej) { res(true); }).then(function(){
22-
throw new opts.extends("test error");
22+
throw new Err("test error");
2323
}).catch(opts.extends, function(e){
2424
caught_error_in_promise = true;
2525
}).finally(function(){

0 commit comments

Comments
 (0)
Please sign in to comment.