crypti / eth-price Goto Github PK
View Code? Open in Web Editor NEW:dizzy: A CLI app to grab the current ETH price from your terminal in USD and/or other cryptocurrency symbols
License: MIT License
:dizzy: A CLI app to grab the current ETH price from your terminal in USD and/or other cryptocurrency symbols
License: MIT License
Not sure why, but it seems the build error is coming from popsicle and nock. Popsicle allows the application to run just fine, but it gets in the way of the tests for some reason.
I have a branch where I switched popsicle out for isomorphic-fetch, and the build is running perfectly, with the tests passing.
If you don't have a preference for popsicle, and you don't mind using isomorphic-fetch, this PR fixes things (and increases code coverage to 100%).
Here is the error coming from the test run:
<--- Last few GCs ---> 83320 ms: Mark-sweep 1308.9 (1436.1) -> 1303.6 (1436.1) MB, 763.1 / 0.0 ms [allocation failure] [GC in old space requested]. 84087 ms: Mark-sweep 1303.6 (1436.1) -> 1303.6 (1436.1) MB, 767.0 / 0.0 ms [allocation failure] [GC in old space requested]. 85077 ms: Mark-sweep 1303.6 (1436.1) -> 1311.3 (1411.1) MB, 989.4 / 0.0 ms [last resort gc]. 86036 ms: Mark-sweep 1311.3 (1411.1) -> 1319.1 (1411.1) MB, 958.9 / 0.0 ms [last resort gc]. <--- JS stacktrace ---> ==== JS stack trace ========================================= Security context: 0x292fa58cfb51 1: emitError(aka emitError) [/Users/michael/forks/eth-price/node_modules/nock/lib/request_overrider.js:~205] [pc=0x3cca160f95d2] (this=0x292fa5804381 ,error=0x1bd4c41de3d9 ) 2: abort [/Users/michael/forks/eth-price/node_modules/nock/lib/request_overrider.js:185] [pc=0x3cca164f0eef] (this=0x136f25638449 , v8::Local) [/usr/local/bin/node] 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node] 4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/bin/node] 5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node] 6: 0x3cca15f079a7 7: 0x3cca160f95d2 1 exception โ test.js exited due to SIGABRT ----------|----------|----------|----------|----------|----------------| File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines | ----------|----------|----------|----------|----------|----------------| All files | Unknown | Unknown | Unknown | Unknown | | ----------|----------|----------|----------|----------|----------------| npm ERR! Darwin 16.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! [email protected] test: `xo && nyc ava` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] test script 'xo && nyc ava'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the eth-price package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! xo && nyc ava npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs eth-price npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls eth-price npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /Users/michael/forks/eth-price/npm-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.