Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Migration Test Definitions (#865)
The migration tests are defining `describe` blocks asyncronously within an `it` block. AFAIU, this is a no-no and causes ugly test formatting. This PR adjusts the test definitions so that they belong to the correct parent `describe` block (one per migration version). <details><summary>Test formatting <strong>before</strong>:</summary> ``` addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set execTransaction ✔ should be able to transfer ETH (48ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set execTransaction ✔ should be able to transfer ETH (48ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set execTransaction ✔ should be able to transfer ETH (45ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set execTransaction ✔ should be able to transfer ETH (49ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set execTransaction ✔ should be able to transfer ETH (52ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set ``` </details> <details><summary>Test formatting <strong>after</strong>:</summary> ``` Upgrade from Safe 1.1.1 execTransaction ✔ should be able to transfer ETH (50ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set Upgrade from Safe 1.2.0 execTransaction ✔ should be able to transfer ETH (45ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set Upgrade from Safe 1.3.0 execTransaction ✔ should be able to transfer ETH (52ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set Upgrade from Safe 1.3.0 L2 execTransaction ✔ should be able to transfer ETH (50ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set Upgrade from Safe 1.4.1 execTransaction ✔ should be able to transfer ETH (52ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set Upgrade from Safe 1.4.1 L2 execTransaction ✔ should be able to transfer ETH (51ms) addOwner ✔ should add owner and change threshold enableModule ✔ should enabled module and be able to use it multiSend ✔ execute multisend via delegatecall fallbackHandler ✔ should be correctly set ``` </details>
- Loading branch information