This website requires JavaScript.
Explore
Help
Sign In
status-im
/
MyCrypto
Watch
2
Star
0
Fork
0
You've already forked MyCrypto
mirror of
https://github.com/status-im/MyCrypto.git
synced
2025-01-09 18:45:38 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
MyCrypto
/
jest_config
/
setupJest.js
4 lines
93 B
JavaScript
Raw
Permalink
Normal View
History
Unescape
Escape
RPC Error Handling (#384) * create ensureOkResponse and check against RPC responses * Merge with develop branch * added single unit test * main nodes added * getBalance method * remove console.log * minor conflict fix - readd polyfill to integration test * added two more method tests * seperate rpcnode from extended classes * fixes etherscan * added all tests * revert files with only formatting changes * remove console.logs - still need to update snapshot before tests will pass * updated snapshot due to RpcNode fixes for Infura and Etherscan nodes * added RpcNodeTest config so we don't rely on constants in code * undo formatting changes * Multiple fixes to error handling tokens. * Fixed TSC errors * Minor styling edit - change async func to promise * changed shape of tokenBalances * change balance type back to stricter TokenValue type * remove package.json change and include test for error state. * minor change removing unneeded line of code * added longer timeout for api * update snapshot
2017-11-30 00:35:17 -05:00
'use strict'
;
Fix jest tests (#1534) * Fix jest tests with different fetch lib * Make exact dep version
2018-04-16 18:23:03 -04:00
require
(
'isomorphic-fetch'
)
;
RPC Error Handling (#384) * create ensureOkResponse and check against RPC responses * Merge with develop branch * added single unit test * main nodes added * getBalance method * remove console.log * minor conflict fix - readd polyfill to integration test * added two more method tests * seperate rpcnode from extended classes * fixes etherscan * added all tests * revert files with only formatting changes * remove console.logs - still need to update snapshot before tests will pass * updated snapshot due to RpcNode fixes for Infura and Etherscan nodes * added RpcNodeTest config so we don't rely on constants in code * undo formatting changes * Multiple fixes to error handling tokens. * Fixed TSC errors * Minor styling edit - change async func to promise * changed shape of tokenBalances * change balance type back to stricter TokenValue type * remove package.json change and include test for error state. * minor change removing unneeded line of code * added longer timeout for api * update snapshot
2017-11-30 00:35:17 -05:00
window
.
BASE
_API
=
'http://localhost:4000/api/v1'
;
Reference in New Issue
Copy Permalink