Skip to content

Commit

Permalink
Updated the errors test for the new error object.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard committed Mar 12, 2013
1 parent c6ebd90 commit d232f6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
},
Expand Down

0 comments on commit d232f6a

Please sign in to comment.