mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 03:26:14 +00:00
cf9887f21f
* Verify and complete all branching saga logic tests for transaction stack. * Write reducer tests for refactored transaction stack. * Add selector tests. Some files still need to be debugged. * Add snapshot test for fields, additional seelector testing. * Remove fields snapshots. * Remove ABIs from the TestState json * Use redux state instead of raw json in selector testing. * Fix merge issues. * Remove log * Fix state values. * Change test value to wei. * Last touchup. * Fix buffer shape, change Wei typo, use reasonable wei values. * Last touch up.
12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
import { configuredStore } from '../../common/store';
|
|
|
|
export function getInitialState() {
|
|
return { ...configuredStore.getState() };
|
|
}
|
|
|
|
export function testShallowlyEqual(oldValue: any, newValue: any) {
|
|
it('should be shallowly equal when called again with the same state', () => {
|
|
expect(oldValue === newValue).toBeTruthy();
|
|
});
|
|
}
|