mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-06-04 13:19:01 -04:00
fix test assertion
This commit is contained in:
parent
38ca84d9e4
commit
6afb51e133
1 changed files with 2 additions and 2 deletions
|
@ -1632,7 +1632,7 @@ test("Cannot post offer exceeding trade limit (CI, sanity check)", async () => {
|
|||
});
|
||||
throw new Error("Should have rejected posting offer above trade limit")
|
||||
} catch (err: any) {
|
||||
assert(err.message.indexOf("amount is larger than") === 0);
|
||||
if (err.message.indexOf("amount is larger than") < 0) throw err;
|
||||
}
|
||||
|
||||
// test posting sell offer above limit
|
||||
|
@ -1646,7 +1646,7 @@ test("Cannot post offer exceeding trade limit (CI, sanity check)", async () => {
|
|||
});
|
||||
throw new Error("Should have rejected posting offer above trade limit")
|
||||
} catch (err: any) {
|
||||
assert(err.message.indexOf("amount is larger than") === 0);
|
||||
if (err.message.indexOf("amount is larger than") < 0) throw err;
|
||||
}
|
||||
|
||||
// test that sell limit is higher than buy limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue