mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 19:44:12 +00:00
WA-238 Silence tests' output
This commit is contained in:
parent
a759328f40
commit
23f0af976c
@ -65,10 +65,10 @@ describe('React DOM TESTS > Create Safe form', () => {
|
|||||||
const deployed = TestUtils.findRenderedDOMComponentWithClass(open, DEPLOYED_COMPONENT_ID)
|
const deployed = TestUtils.findRenderedDOMComponentWithClass(open, DEPLOYED_COMPONENT_ID)
|
||||||
|
|
||||||
if (deployed) {
|
if (deployed) {
|
||||||
const transactionHash = JSON.parse(deployed.getElementsByTagName('pre')[0].innerHTML)
|
const transaction = JSON.parse(deployed.getElementsByTagName('pre')[0].innerHTML)
|
||||||
delete transactionHash.logsBloom
|
delete transaction.receipt.logsBloom
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
console.log(transactionHash)
|
// console.log(transaction)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -28,8 +28,11 @@ export const getProviderInfo: Function = async (): Promise<ProviderProps> => {
|
|||||||
|
|
||||||
// Use MetaMask's provider.
|
// Use MetaMask's provider.
|
||||||
web3 = new Web3(window.web3.currentProvider)
|
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 name = isMetamask(web3) ? 'METAMASK' : 'UNKNOWN'
|
||||||
const account = await getAccountFrom(web3)
|
const account = await getAccountFrom(web3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user