Created
December 5, 2018 16:36
-
-
Save kyriediculous/565ae5193a228cb60da5e11ba4992773 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DummyMaster = artifacts.require('DummyMaster') | |
const Dummy = artifacts.require('Dummy') | |
const DummyInterface = artifacts.require('DummyInterface') | |
contract('Test Proxies', async () => { | |
let dummyMaster, dummy | |
before(async () => { | |
dummyMaster = await DummyMaster.new() | |
}) | |
it("Deploys a proxy", async () => { | |
dummy = await Dummy.new(dummyMaster.address) | |
dummy = await DummyInterface.at(dummy.address) | |
await dummy.increment() | |
assert.equal((await dummy.get()).toString(10), '1') | |
}) | |
it("Deploys another proxy", async () => { | |
dummy = await Dummy.new(dummyMaster.address) | |
dummy = await DummyInterface.at(dummy.address) | |
await dummy.increment() | |
assert.equal((await dummy.get()).toString(10), '1') | |
}) | |
it("Deploys a third proxy", async () => { | |
dummy = await Dummy.new(dummyMaster.address) | |
dummy = await DummyInterface.at(dummy.address) | |
await dummy.increment() | |
assert.equal((await dummy.get()).toString(10), '1') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment