test arbitrator closed trade

This commit is contained in:
woodser 2022-09-18 10:53:34 -04:00
parent 2f708ee60c
commit 1e9ba7fa6e

View File

@ -1283,6 +1283,10 @@ test("Can complete a trade", async () => {
expect(user1Fee).toBeGreaterThan(BigInt("0"));
expect(user2Fee).toBeLessThanOrEqual(TestConfig.maxFee);
expect(user2Fee).toBeGreaterThan(BigInt("0"));
// arbitrator trade is closed
const arbitratorTrade = await arbitrator.getTrade(trade.getTradeId());
expect(arbitratorTrade.getState()).toEqual("WITHDRAW_COMPLETED");
});
// TODO: refactor to common trade completion test methods