pull/3598/head
yann300 2 years ago
parent 55b07e00db
commit 4cf3a7bc7d
  1. 2
      apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts
  2. 4
      apps/remix-ide-e2e/src/tests/blockchain.test.ts

@ -26,7 +26,7 @@ function verifyCallReturnValue (browser: NightwatchBrowser, address: string, che
}, [address], function (result) { }, [address], function (result) {
if (typeof checks === 'function') { if (typeof checks === 'function') {
const ret = checks(result.value as string[]) const ret = checks(result.value as string[])
browser.assert.equal(ret.pass, ret.message) if (!ret.pass) browser.assert.fail(ret.message)
} else { } else {
for (const k in checks) { for (const k in checks) {
browser.assert.equal(result.value[k].trim(), checks[k].trim()) browser.assert.equal(result.value[k].trim(), checks[k].trim())

@ -36,7 +36,7 @@ module.exports = {
message: pass ? 'pass' : 'a non empty blockhash should be returned' message: pass ? 'pass' : 'a non empty blockhash should be returned'
} }
}) })
.perform(done) .perform(() => done())
}) })
}) })
.clickFunction('foo - call', { types: 'uint256 p', values: '1' }) .clickFunction('foo - call', { types: 'uint256 p', values: '1' })
@ -52,7 +52,7 @@ module.exports = {
message: pass ? 'pass' : 'a non empty blockhash should be returned' message: pass ? 'pass' : 'a non empty blockhash should be returned'
} }
}) })
.perform(done) .perform(() => done())
}) })
}).end() }).end()
} }

Loading…
Cancel
Save