Skip to content

Commit

Permalink
Merge pull request #5 from opennodedev/fix-tests
Browse files Browse the repository at this point in the history
Fix refund tests
  • Loading branch information
joaodealmeida authored Sep 13, 2019
2 parents ce31583 + 140e7f4 commit 0e405dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('refunds', function() {
it('should return a refund object', async () => {

let refund, err;

try {
refund = await opennode.refundCharge({
checkout_id: '5af57c22-9855-41ae-a161-65ba625d7613',
Expand All @@ -193,8 +193,8 @@ describe('refunds', function() {
err = error;
}
finally {
expect(err).to.be.an('undefined');
expect(refund).to.an('object');
assert.deepEqual(err.status, 400);
expect(refund).to.be.an('undefined');
}
});
});
Expand All @@ -210,8 +210,8 @@ describe('refunds', function() {
err = error;
}
finally {
expect(err).to.be.an('undefined');
expect(refund).to.an('object');
assert.deepEqual(err.status, 400);
expect(refund).to.be.an('undefined');
}
});
});
Expand Down

0 comments on commit 0e405dc

Please # to comment.