Fix e2e tests

pull/5370/head
yann300 4 years ago committed by GitHub
parent 80983d16e5
commit 55700de86d
  1. 2
      libs/remix-url-resolver/tests/test.ts

@ -76,7 +76,7 @@ describe('testRunner', () => {
it('should return contract content of given github path', () => {
const expt: object = {
cleanURL: 'github.com/MathCody/solidity-examples/greeter/greeter.sol',
content: 'pragma solidity >=0.5.0 <0.6.0;\nimport \"../mortal/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 <0.6.0;\nimport \"../mortal/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}',
type: 'github'
}
assert.deepEqual(results, expt)

Loading…
Cancel
Save