mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-05 06:43:07 +00:00
vault: cleanup tests
This commit is contained in:
parent
7de8b8ccb6
commit
15e7ae855d
@ -43,8 +43,8 @@ describe("Vault", function () {
|
||||
})
|
||||
|
||||
it("allows a lock to be set", async function () {
|
||||
expiry = (await currentTime()) + 80
|
||||
maximum = (await currentTime()) + 100
|
||||
const expiry = (await currentTime()) + 80
|
||||
const maximum = (await currentTime()) + 100
|
||||
await vault.lock(fund, expiry, maximum)
|
||||
expect(await vault.getLockStatus(fund)).to.equal(LockStatus.Locked)
|
||||
expect(await vault.getLockExpiry(fund)).to.equal(expiry)
|
||||
@ -832,7 +832,7 @@ describe("Vault", function () {
|
||||
|
||||
function testBurnedFund() {
|
||||
it("cannot set lock", async function () {
|
||||
const locking = vault.lock(fund, expiry, maximum)
|
||||
const locking = vault.lock(fund, expiry, expiry)
|
||||
await expect(locking).to.be.revertedWith("FundAlreadyLocked")
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user