Browse Source

test: add naive contract tests

develop
Apostolos Fanakis 4 years ago
parent
commit
f67444a560
  1. 11
      packages/concordia-contracts/test/TestForum.sol
  2. 11
      packages/concordia-contracts/test/forum.js

11
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!");
}
}

11
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.');
});
});
Loading…
Cancel
Save