WA-238 Silence tests' output

This commit is contained in:
apanizo 2018-06-01 08:49:52 +02:00
parent a759328f40
commit 23f0af976c
2 changed files with 8 additions and 5 deletions

View File

@ -65,10 +65,10 @@ describe('React DOM TESTS > Create Safe form', () => {
const deployed = TestUtils.findRenderedDOMComponentWithClass(open, DEPLOYED_COMPONENT_ID)
if (deployed) {
const transactionHash = JSON.parse(deployed.getElementsByTagName('pre')[0].innerHTML)
delete transactionHash.logsBloom
const transaction = JSON.parse(deployed.getElementsByTagName('pre')[0].innerHTML)
delete transaction.receipt.logsBloom
// eslint-disable-next-line
console.log(transactionHash)
// console.log(transaction)
}
})
})

View File

@ -28,8 +28,11 @@ export const getProviderInfo: Function = async (): Promise<ProviderProps> => {
// Use MetaMask's provider.
web3 = new Web3(window.web3.currentProvider)
// eslint-disable-next-line
console.log('Injected web3 detected.')
if (process.env.NODE_ENV !== 'test') {
// eslint-disable-next-line
console.log('Injected web3 detected.')
}
const name = isMetamask(web3) ? 'METAMASK' : 'UNKNOWN'
const account = await getAccountFrom(web3)