Skip to content

Instantly share code, notes, and snippets.

@thomasvds
Created April 21, 2018 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasvds/d227bc51cbc0cb0c536e5c625b685666 to your computer and use it in GitHub Desktop.
Save thomasvds/d227bc51cbc0cb0c536e5c625b685666 to your computer and use it in GitHub Desktop.
const CryptoRun = artifacts.require('./CryptoRun.sol')
contract('CryptoRun', function ([owner, beCode, donor1, donor2, hacker]) {
let cryptoRun
let cryptoRunAddress
beforeEach('setup contract and Oracle for each test', async function () {
cryptoRun = await CryptoRun.new(beCode)
cryptoRunAddress = await cryptoRun.address
await forceOracleStatus('ongoing')
})
it('has an owner equal to its deployer', async function () {
assert.equal(await cryptoRun.ownerAddress(), owner)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment