Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
catel committed Sep 6, 2023
1 parent d0076c1 commit d4ea18f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/TrendsLock.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const {
expectRevert, subject1, createSharesEthFee, newToken, expectRevertCustomError, eth_1,
subject0,
share1Price,
share2Price
expectRevert, newToken, expectRevertCustomError, eth_1
} = require("./utils");
const {web3} = require("hardhat");
const {expect} = require("chai");
const TrendsLock = artifacts.require("TrendsLock");
const {time, takeSnapshot} = require("@nomicfoundation/hardhat-network-helpers");
Expand Down Expand Up @@ -222,7 +218,7 @@ contract('TrendsLock', function (accounts) {
it('team correct after transfer and time elapse 1s', async function () {
let transferAmount = lockAmount.divn(10);
await trendsLock.transfer(user2, transferAmount, {from: team});
let newStartTime=await time.latest();
let newStartTime = await time.latest();
await time.increase(1);
let claimedAmount = await trendsToken.balanceOf(team);
expect(await trendsLock.getClaimableAmount(team)).to.be.bignumber.eq(
Expand All @@ -232,7 +228,7 @@ contract('TrendsLock', function (accounts) {
it('user2 correct after transfer and time elapse 1s', async function () {
let transferAmount = lockAmount.divn(10);
await trendsLock.transfer(user2, transferAmount, {from: team});
let newStartTime=await time.latest();
let newStartTime = await time.latest();
await time.increase(1);
expect(await trendsLock.getClaimableAmount(user2)).to.be.bignumber.eq(
transferAmount.divn(endTime - newStartTime));
Expand Down

0 comments on commit d4ea18f

Please sign in to comment.