@@ -40,11 +43,11 @@ describe('testRunner', function () {
...
@@ -40,11 +43,11 @@ describe('testRunner', function () {
})
})
})
})
it('should have 3 items',function(){
it('should have 3 items',()=>{
assert.equal(Object.keys(results).length,3)
assert.equal(Object.keys(results).length,3)
})
})
it('should returns contract content of given local path',function(){
it('should returns contract content of given local path',()=>{
constexpt={
constexpt={
content:'pragma solidity ^0.5.0;\nimport "./mortal.sol";\n\ncontract Greeter is Mortal {\n /* Define variable greeting of the type string */\n string greeting;\n\n /* This runs when the contract is executed */\n constructor(string memory _greeting) public {\n greeting = _greeting;\n }\n\n /* Main function */\n function greet() public view returns (string memory) {\n return greeting;\n }\n}\n',
content:'pragma solidity ^0.5.0;\nimport "./mortal.sol";\n\ncontract Greeter is Mortal {\n /* Define variable greeting of the type string */\n string greeting;\n\n /* This runs when the contract is executed */\n constructor(string memory _greeting) public {\n greeting = _greeting;\n }\n\n /* Main function */\n function greet() public view returns (string memory) {\n return greeting;\n }\n}\n',
@@ -69,10 +72,10 @@ describe('testRunner', function () {
...
@@ -69,10 +72,10 @@ describe('testRunner', function () {
}
}
})
})
it('should have 3 items',function(){
it('should have 3 items',()=>{
assert.equal(Object.keys(results).length,3)
assert.equal(Object.keys(results).length,3)
})
})
it('should returns contract content of given local path',function(){
it('should returns contract content of given local path',()=>{
constexpt={
constexpt={
content:'pragma solidity ^0.5.0;\nimport "./mortal.sol";\n\ncontract Greeter is Mortal {\n /* Define variable greeting of the type string */\n string greeting;\n\n /* This runs when the contract is executed */\n constructor(string memory _greeting) public {\n greeting = _greeting;\n }\n\n /* Main function */\n function greet() public view returns (string memory) {\n return greeting;\n }\n}\n',
content:'pragma solidity ^0.5.0;\nimport "./mortal.sol";\n\ncontract Greeter is Mortal {\n /* Define variable greeting of the type string */\n string greeting;\n\n /* This runs when the contract is executed */\n constructor(string memory _greeting) public {\n greeting = _greeting;\n }\n\n /* Main function */\n function greet() public view returns (string memory) {\n return greeting;\n }\n}\n',