diff --git a/packages/concordia-contracts/test/TestForum.sol b/packages/concordia-contracts/test/TestForum.sol new file mode 100755 index 0000000..c07f277 --- /dev/null +++ b/packages/concordia-contracts/test/TestForum.sol @@ -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!"); + } +} \ No newline at end of file diff --git a/packages/concordia-contracts/test/forum.js b/packages/concordia-contracts/test/forum.js new file mode 100755 index 0000000..7120f66 --- /dev/null +++ b/packages/concordia-contracts/test/forum.js @@ -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.'); + }); +});