cover api/ledger/parse/utils.js with tests

This commit is contained in:
Ivan Tivonenko
2015-07-29 16:42:23 +03:00
parent 472fbce23a
commit cecf3f3d22
6 changed files with 72 additions and 2 deletions

View File

@@ -215,6 +215,15 @@ describe('RippleAPI', function() {
'getTransaction', done));
});
it('getTransaction - not validated', function(done) {
const hash =
'4FB3ADF22F3C605E23FAEFAA185F3BD763C4692CAC490D9819D117CD33BFAA10';
this.api.getTransaction(hash, {}, (error, data) => {
assert.deepEqual(data, responses.getTransaction.notValidated);
done(error);
});
});
it('getTransaction - tracking on', function(done) {
const hash =
'8925FC8844A1E930E2CC76AD0A15E7665AFCC5425376D548BB1413F484C31B8C';