const Test = artifacts.require("Test");
const ETHER = 10**18;
const FINNEY = 10**15; //PWEI
const SZABO = 10**12;
const SHANNON = 10**9; //GWEI
contract("Test", (accounts) => {
let test;
const owner = accounts[0];
const account1 = accounts[1];
before(async () => {
test = await Test.new();
});
it("create member account", async () => {
await test.registration(account1, {from: owner});
const actual = await test.hasAccount(account1);
assert.isTrue(actual, "member account should exist");
});
});
Add a code snippet to your website: www.paste.org