Permalink
Browse files

Updated the errors test for the new error object.

  • Loading branch information...
1 parent c6ebd90 commit d232f6a82b275d9eeb7744f29c7d4a6f6dca94fa @BusyRich BusyRich committed Mar 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/errors.js
View
@@ -17,9 +17,12 @@ vows.describe("Error handling").addBatch({
stripe.plans.retrieve("unknown_plan_" + Date.now(), this.callback);
},
'returns an error' : function(err, response) {
+ console.log(err);
assert.isNull(response);
assert.instanceOf(err, Error);
assert.equal(err.name, 'invalid_request_error');
+ assert.equal(err.code, undefined);
+ assert.equal(err.param, 'id');
assert.isNotNull(err.message);
},
},

0 comments on commit d232f6a

Please sign in to comment.