Created
July 22, 2018 22:08
-
-
Save sogoiii/86bf6c9d39416e591837303ab95e8366 to your computer and use it in GitHub Desktop.
Test handles how to create an event for our smart contracts
This file contains 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
it('should fail to create an event because eventName is not a string', async function () { | |
let op1 = await this.Contract.createEvent(123456, _eventDescription, _eventWebsite, _eventDate, _location, { from: mainAccount }) | |
assert.equal(op1.receipt.status, hex.fail, 'TX status should fail') | |
let CreatedList = await this.Contract.getMyCreatedEvents.call(4, 1) | |
assert.deepEqual(convertBigNumArr(CreatedList), ['0', '0', '0', '0']) | |
let EventList = await this.Contract.getAllEvents.call(4, 1) | |
assert.deepEqual(convertBigNumArr(EventList), ['0', '0', '0', '0']) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment