MyCrypto/spec/reducers/config/__snapshots__/config.spec.ts.snap
HenryNguyen5 01fc5f1a89 Move Nodes/Networks to Redux (#961)
* Start splitting networks into their own reducers

* Split out nodes and networks into their own reducers

* Cleanup file structure

* Make selectors for new state

* Change custom network typing

* re-type repo

* Fix up components to use selectors, work on fixing sagas

* Provide consistency in naming, fix more sagas

* Get non web3 node switching working

* Split config rehydration off into a different file for store

* Inline auth for custom nodes

* Include typing for app state

* moar selectors

* Get web3 working + cleanup sagas

* Cleanup tsc errors

* Use forof loop instead of foreach for clearing pruning custom networks

* Add reducer tests for new redux state

* Export needed variables

* Add console error

* Remove old comment

* Work on saga tests

* Get passing existing saga tests

* Fix more tests

* Remove irrlevant tests

* add console error

* Get rest of tests passing

* Fix merge errors

* Remove random text

* Fix store saving

* Fix selector lib only grabbing from static nodes

* Fix custom node removal crashing app

* Infer selected network via node

* Prune custom networks properly on node removal

* Infer network name from chainid from selecting state

* Cleanup tsc errors

* Remove MEW nodes for main and testnet
2018-02-12 14:43:07 -06:00

92 lines
2.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`handleNodeChangeIntent* should race getCurrentBlock and delay 1`] = `
Object {
"@@redux-saga/IO": true,
"RACE": Object {
"lb": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [],
"context": RpcNode {
"client": RPCClient {
"batch": [Function],
"call": [Function],
"createHeaders": [Function],
"decorateRequest": [Function],
"endpoint": "https://node.expanse.tech/",
"headers": Object {},
},
"requests": RPCRequests {},
},
"fn": [Function],
},
},
"to": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [
5000,
],
"context": null,
"fn": [Function],
},
},
},
}
`;
exports[`handleNodeChangeIntent* should select getCustomNodeConfig and match race snapshot 1`] = `
Object {
"@@redux-saga/IO": true,
"SELECT": Object {
"args": Array [],
"selector": [Function],
},
}
`;
exports[`pollOfflineStatus* should race pingSucceeded and timeout 1`] = `
Object {
"@@redux-saga/IO": true,
"RACE": Object {
"pingSucceeded": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [],
"context": null,
"fn": [Function],
},
},
"timeout": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [
5000,
],
"context": null,
"fn": [Function],
},
},
},
}
`;
exports[`pollOfflineStatus* should toggle offline and show notification if navigator agrees with isOffline and ping fails 1`] = `
Object {
"@@redux-saga/IO": true,
"PUT": Object {
"action": Object {
"payload": Object {
"duration": 5000,
"id": 0.001,
"level": "info",
"msg": "You are currently offline. Some features will be unavailable.",
},
"type": "SHOW_NOTIFICATION",
},
"channel": null,
},
}
`;