Format code
This commit is contained in:
parent
1f8b32ac0e
commit
a1b787a9d9
|
@ -7,7 +7,4 @@ function resetTestAccount() {
|
||||||
delete window.testAccountIndex
|
delete window.testAccountIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export { useTestAccountAt, resetTestAccount }
|
||||||
useTestAccountAt,
|
|
||||||
resetTestAccount,
|
|
||||||
}
|
|
||||||
|
|
|
@ -34,20 +34,14 @@ export const checkRegisteredTxSend = async (
|
||||||
expect(txDescription).toHaveTextContent(`Send ${ethAmount} ${symbol} to:${shortVersionOf(ethAddress, 4)}`)
|
expect(txDescription).toHaveTextContent(`Send ${ethAmount} ${symbol} to:${shortVersionOf(ethAddress, 4)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const checkRegisteredTxAddOwner = async (
|
export const checkRegisteredTxAddOwner = async (SafeDom: React.Component<any, any>, ownerAddress: string) => {
|
||||||
SafeDom: React.Component<any, any>,
|
|
||||||
ownerAddress: string,
|
|
||||||
) => {
|
|
||||||
await getLastTransaction(SafeDom)
|
await getLastTransaction(SafeDom)
|
||||||
|
|
||||||
const txDescription = SafeDom.getAllByTestId(TRANSACTIONS_DESC_ADD_OWNER_TEST_ID)[0]
|
const txDescription = SafeDom.getAllByTestId(TRANSACTIONS_DESC_ADD_OWNER_TEST_ID)[0]
|
||||||
expect(txDescription).toHaveTextContent(`Add owner:${shortVersionOf(ownerAddress, 4)}`)
|
expect(txDescription).toHaveTextContent(`Add owner:${shortVersionOf(ownerAddress, 4)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const checkRegisteredTxRemoveOwner = async (
|
export const checkRegisteredTxRemoveOwner = async (SafeDom: React.Component<any, any>, ownerAddress: string) => {
|
||||||
SafeDom: React.Component<any, any>,
|
|
||||||
ownerAddress: string,
|
|
||||||
) => {
|
|
||||||
await getLastTransaction(SafeDom)
|
await getLastTransaction(SafeDom)
|
||||||
|
|
||||||
const txDescription = SafeDom.getAllByTestId(TRANSACTIONS_DESC_REMOVE_OWNER_TEST_ID)[0]
|
const txDescription = SafeDom.getAllByTestId(TRANSACTIONS_DESC_REMOVE_OWNER_TEST_ID)[0]
|
||||||
|
|
Loading…
Reference in New Issue