Skip to content

Instantly share code, notes, and snippets.

@arkhaminferno
Created March 1, 2020 06:10
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 arkhaminferno/375f52c140694076d9161695bd22ace0 to your computer and use it in GitHub Desktop.
Save arkhaminferno/375f52c140694076d9161695bd22ace0 to your computer and use it in GitHub Desktop.
const assert = require('assert');
const TournamentContract = artifacts.require('./TournamentContract.sol');
before(async() =>{
tournament = await TournamentContract.deployed();
});
describe("Testing Create Tournament function", () => {
it("should return true after tournaments being created.", () => {
const input = [
[ 'The very first Tournament', 'Type 1',[4,1],0 ];
});
const output = ['The very first Tournament', 'Type 1',[4,1],0];
assert.equal(createTournament(),true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment