This website requires JavaScript.
Explore
Help
Sign In
status-im
/
MyCrypto
mirror of
https://github.com/status-im/MyCrypto.git
Watch
2
Star
0
Fork
You've already forked MyCrypto
0
Code
Issues
Projects
Releases
Wiki
Activity
94c8aa7c6f
MyCrypto
/
jest_config
/
setupJest.js
4 lines
93 B
JavaScript
Raw
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 05:35:17 +00:00
'use strict'
;
Fix jest tests (#1534) * Fix jest tests with different fetch lib * Make exact dep version
2018-04-16 22:23:03 +00: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 05:35:17 +00:00
window
.
BASE
_API
=
'http://localhost:4000/api/v1'
;