mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-09-18 03:34:38 -04:00
skip offer tests when missing context
This commit is contained in:
parent
e32aacc8d9
commit
4b8c5db8a7
1 changed files with 1 additions and 1 deletions
|
@ -4312,7 +4312,7 @@ function testCryptoPaymentAccountsEqual(acct1: PaymentAccount, acct2: PaymentAcc
|
|||
function testOffer(offer: OfferInfo, ctxP?: Partial<TradeContext>, isMyOffer?: boolean) {
|
||||
let ctx = TradeContext.init(ctxP);
|
||||
expect(offer.getId().length).toBeGreaterThan(0);
|
||||
if (ctx) {
|
||||
if (ctxP) {
|
||||
expect(offer.getIsPrivateOffer()).toEqual(ctx?.isPrivateOffer ? true : false); // TODO: update tests for security deposit
|
||||
if (offer.getIsPrivateOffer()) {
|
||||
if (isMyOffer) expect(offer.getChallenge().length).toBeGreaterThan(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue