Code coverage for Solidity smart-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const Simple = artifacts.require('Simple');
|
|
|
|
contract('Simple', () => {
|
|
it('should set x to 5', async function(){
|
|
const simple = await Simple.deployed()
|
|
await simple.test(5);
|
|
const val = await simple.getX.call();
|
|
assert.equal(val.toNumber(), 5);
|
|
});
|
|
});
|
|
|