remove duplicated test

This commit is contained in:
Andrea Franz 2020-04-24 19:06:06 +02:00
parent b4e923c0a3
commit 16579768d3
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D

View File

@ -156,22 +156,6 @@ contract("GiftBucket", function () {
});
});
it("deploy bucket via factory", async () => {
const create = GiftBucketFactory.methods.create(TestToken._address, START_TIME, EXPIRATION_TIME);
const gas = await create.estimateGas();
const receipt = await create.send({
from: shop,
gas: gas,
});
const bucketAddress = receipt.events.BucketCreated.returnValues.bucket;
const jsonInterface = _GiftBucket.options.jsonInterface;
GiftBucket = new EmbarkJS.Blockchain.Contract({
abi: jsonInterface,
address: bucketAddress,
});
});
it("shop buys 100 tokens", async function () {
let supply = await TestToken.methods.totalSupply().call();
assert.equal(parseInt(supply), 0);