From 5f1c2b29e36d81d8fe74fe653124f080a122183b Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Mon, 26 Feb 2024 00:51:52 +1100 Subject: [PATCH] add extra checks --- tests/integration/grandExchange.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/grandExchange.test.ts b/tests/integration/grandExchange.test.ts index 4c52488c61..84db2c9796 100644 --- a/tests/integration/grandExchange.test.ts +++ b/tests/integration/grandExchange.test.ts @@ -131,6 +131,14 @@ describe('Grand Exchange', async () => { } await Promise.all(cancelPromises); await waitForGEToBeEmpty(); + const { buyListings, sellListings } = await GrandExchange.fetchActiveListings(); + if (buyListings.length > 0 || sellListings.length > 0) { + throw new Error('There should be no active listings!'); + } + const newCurrentOwnedBank = await GrandExchange.fetchOwnedBank(); + if (newCurrentOwnedBank.length !== 0) { + throw new Error('There should be no items in the G.E bank!'); + } console.log('Finished cancelling'); await Promise.all(users.map(u => u.sync()));