mirror of https://gitlab.com/ecentrics/concordia
Apostolos Fanakis
4 years ago
2 changed files with 22 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
pragma solidity >=0.4.21 <0.7.0; |
|||
|
|||
import "truffle/Assert.sol"; |
|||
import "../contracts/Forum.sol"; |
|||
|
|||
contract TestForum { |
|||
function testTrue() public { |
|||
|
|||
Assert.isTrue(true, "Oops placeholder test failed!"); |
|||
} |
|||
} |
@ -0,0 +1,11 @@ |
|||
const Forum = artifacts.require('Forum'); |
|||
|
|||
contract('Forum', (accounts) => { |
|||
it('...should succeed.', async () => { |
|||
const forumInstance = await Forum.deployed(); |
|||
|
|||
assert |
|||
.ok(forumInstance |
|||
.signUp('testUsername', { from: accounts[0] }), 'The user was not created.'); |
|||
}); |
|||
}); |
Loading…
Reference in new issue