fix broken tests

This commit is contained in:
Fred K. Schott
2019-10-25 10:18:46 -07:00
parent b8022610ca
commit 43ff824da1
4 changed files with 34 additions and 15 deletions

View File

@@ -2925,14 +2925,14 @@ describe('X-address Usage', function () {
});
});
it('getTransaction - ledger_index not found', function () {
it('getTransaction - transaction not validated', function () {
const hash =
'4FB3ADF22F3C605E23FAEFAA185F3BD763C4692CAC490D9819D117CD33BFAA11';
return this.api.getTransaction(hash).then(() => {
assert(false, 'Should throw NotFoundError');
}).catch(error => {
assert(error instanceof this.api.errors.NotFoundError);
assert(error.message.indexOf('ledger_index') !== -1);
assert(error.message.indexOf('Transaction has not been validated yet') !== -1);
});
});