Skip to content

Instantly share code, notes, and snippets.

@saurfang
Last active April 15, 2018 01:44
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 saurfang/f6a354ae87e536389de76ab4e8f0c643 to your computer and use it in GitHub Desktop.
Save saurfang/f6a354ae87e536389de76ab4e8f0c643 to your computer and use it in GitHub Desktop.
const GuessTheNewNumberChallenge = artifacts.require('GuessTheNewNumberChallenge');
contract('GuessTheNewNumberChallenge', ([account]) => {
it('should be completed', async () => {
let challenge = await GuessTheNewNumberChallenge.new({value: web3.toWei(1, 'ether')});
assert(
await challenge.isComplete() === true,
'Challenge has not been completed!'
);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment