clean tests
This commit is contained in:
parent
965b9cf18c
commit
6b0083eeb8
@ -1,4 +1,3 @@
|
||||
const ethers = require('ethers');
|
||||
const namehash = require('ethers').utils.namehash;
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
@ -48,7 +47,6 @@ const mineBlock = function() {
|
||||
|
||||
contract('Contribution app', (accounts) => {
|
||||
// eslint-disable-next-line no-undef
|
||||
let ethProvider = new ethers.providers.Web3Provider(web3.currentProvider);
|
||||
let kernelBase, aclBase, daoFactory, r, dao, acl, contribution, token, contributor;
|
||||
|
||||
const root = accounts[0];
|
||||
@ -234,8 +232,6 @@ contract('Contribution app', (accounts) => {
|
||||
it("veto contribution", async () => {
|
||||
const contributionId = await contribution.contributionsCount();
|
||||
let contributionObject = await contribution.getContribution(contributionId.toNumber());
|
||||
console.log("veto block: " + contributionObject[7]);
|
||||
console.log("current block: " + await ethProvider.getBlockNumber());
|
||||
await contribution.veto(contributionId.toNumber(), {from: root});
|
||||
// eslint-disable-next-line no-undef
|
||||
assert(contributionObject[9], true);
|
||||
@ -282,8 +278,6 @@ contract('Contribution app', (accounts) => {
|
||||
await mineBlock();
|
||||
|
||||
let contributionObject = await contribution.getContribution(contributionId.toNumber());
|
||||
console.log("claim block: " + contributionObject[7]);
|
||||
console.log("current block: " + await ethProvider.getBlockNumber());
|
||||
|
||||
await contribution.claim(contributionId);
|
||||
// eslint-disable-next-line no-undef
|
||||
|
Loading…
x
Reference in New Issue
Block a user