mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-07 15:53:07 +00:00
marketplace: improve withdraw test
Co-Authored-By: Adam Uhlíř <adam@uhlir.dev>
This commit is contained in:
parent
4410941061
commit
d7554ce0d2
@ -822,11 +822,14 @@ describe("Marketplace", function () {
|
|||||||
it("withdraws nothing when wrong account used", async function () {
|
it("withdraws nothing when wrong account used", async function () {
|
||||||
await waitUntilCancelled(marketplace, request)
|
await waitUntilCancelled(marketplace, request)
|
||||||
|
|
||||||
const startBalance = await token.balanceOf(host.address)
|
const startBalanceHost = await token.balanceOf(host.address)
|
||||||
|
const startBalanceClient = await token.balanceOf(client.address)
|
||||||
await marketplace.withdrawFunds(slot.request)
|
await marketplace.withdrawFunds(slot.request)
|
||||||
const endBalance = await token.balanceOf(host.address)
|
const endBalanceHost = await token.balanceOf(host.address)
|
||||||
|
const endBalanceClient = await token.balanceOf(client.address)
|
||||||
|
|
||||||
expect(endBalance - startBalance).to.equal(0)
|
expect(endBalanceHost - startBalanceHost).to.equal(0)
|
||||||
|
expect(endBalanceClient - startBalanceClient).to.equal(0)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("rejects withdraw when in wrong state", async function () {
|
it("rejects withdraw when in wrong state", async function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user