tests: more robust checking of insufficient funds errors.
This commit is contained in:
parent
924cfef5de
commit
9526289f76
@ -236,7 +236,9 @@ describe("Test Provider Blockchain Errors", function() {
|
|||||||
});
|
});
|
||||||
console.log(tx);
|
console.log(tx);
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
return isError(error, "INSUFFICIENT_FUNDS");
|
return (isError(error, "INSUFFICIENT_FUNDS") &&
|
||||||
|
typeof(error.transaction.from) === "string" &&
|
||||||
|
error.transaction.from.toLowerCase() === w.address.toLowerCase());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user