Skip to content

Commit

Permalink
add extra checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 25, 2024
1 parent 88508ba commit 5f1c2b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/grandExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 5f1c2b2

Please sign in to comment.