mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-20 05:30:04 -04:00
test that maker, taker, arbitrator trades have same date
This commit is contained in:
parent
17aab62478
commit
eab5b79761
1 changed files with 2 additions and 0 deletions
|
@ -3140,6 +3140,8 @@ async function takeOffer(ctxP: Partial<TradeContext>): Promise<TradeInfo> {
|
|||
}
|
||||
|
||||
// test trade model
|
||||
assert.equal(ctx.maker.trade!.getDate(), ctx.taker.trade!.getDate(), "Expected trade date to match");
|
||||
assert.equal(ctx.taker.trade!.getDate(), ctx.arbitrator.trade!.getDate(), "Expected trade date to match");
|
||||
await testTrade(takerTrade, ctx);
|
||||
|
||||
// test buyer and seller balances after offer taken
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue