mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 19:44:21 +00:00
6c09e7160a
* add exports to config saga, refactor * add config saga tests * add exports to necessary files * add remaining saga test & snapshots * update orders saga spec to use Infinity constant * update dWallet saga spec snapshot * refactor config saga slightly * update config saga spec * update config saga snapshot * update rates saga spec * remove unused vars from config saga spec
100 lines
2.1 KiB
Plaintext
100 lines
2.1 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": null,
|
||
"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,
|
||
"RACE": Object {
|
||
"lb": Object {
|
||
"@@redux-saga/IO": true,
|
||
"CALL": Object {
|
||
"args": Array [],
|
||
"context": null,
|
||
"fn": [Function],
|
||
},
|
||
},
|
||
"to": Object {
|
||
"@@redux-saga/IO": true,
|
||
"CALL": Object {
|
||
"args": Array [
|
||
5000,
|
||
],
|
||
"context": null,
|
||
"fn": [Function],
|
||
},
|
||
},
|
||
},
|
||
}
|
||
`;
|
||
|
||
exports[`pollOfflineStatus* should put showNotification and put toggleOfflineConfig if !pingSucceeded && !isOffline 1`] = `
|
||
Object {
|
||
"@@redux-saga/IO": true,
|
||
"PUT": Object {
|
||
"action": Object {
|
||
"payload": Object {
|
||
"duration": Infinity,
|
||
"id": 0.001,
|
||
"level": "danger",
|
||
"msg": "You’ve lost your connection to the network, check your internet
|
||
connection or try changing networks from the dropdown at the
|
||
top right of the page.",
|
||
},
|
||
"type": "SHOW_NOTIFICATION",
|
||
},
|
||
"channel": null,
|
||
},
|
||
}
|
||
`;
|
||
|
||
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],
|
||
},
|
||
},
|
||
},
|
||
}
|
||
`;
|