Add resultCode and resultMessage to submit failure RippledError

This commit is contained in:
Chris Clark
2015-11-17 17:33:36 -08:00
parent f196304a56
commit 4f90bbd931
3 changed files with 8 additions and 7 deletions

View File

@@ -205,6 +205,7 @@ describe('RippleAPI', function() {
assert(false, 'Should throw RippledError');
}).catch(error => {
assert(error instanceof this.api.errors.RippledError);
assert.strictEqual(error.data.resultCode, 'temBAD_FEE');
});
});