mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-08-05 21:14:22 -04:00
getMyOffers() does not require asset code
This commit is contained in:
parent
ffb77bdb15
commit
30dd997810
2 changed files with 16 additions and 5 deletions
|
@ -967,9 +967,18 @@ test("Can get offers (CI)", async () => {
|
|||
});
|
||||
|
||||
test("Can get my offers (CI)", async () => {
|
||||
|
||||
// get all offers
|
||||
const offers: OfferInfo[] = await user1.getMyOffers();
|
||||
for (const offer of offers) testOffer(offer);
|
||||
|
||||
// get offers by asset code
|
||||
for (const assetCode of TestConfig.assetCodes) {
|
||||
const offers: OfferInfo[] = await user1.getMyOffers(assetCode);
|
||||
for (const offer of offers) testOffer(offer);
|
||||
for (const offer of offers) {
|
||||
testOffer(offer);
|
||||
expect(assetCode).toEqual(isCrypto(assetCode) ? offer.getBaseCurrencyCode() : offer.getCounterCurrencyCode()); // crypto asset codes are base
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue