bilalq / iex-api

Unofficial SDK for using the IEX API
MIT License
42 stars 13 forks source link

tests fail #8

Open mandric opened 5 years ago

mandric commented 5 years ago

Reporting a likely naive typescript env error after a clean checkout. Help appreciated!

$ npm test

> iex-api@0.0.3 pretest /Users/mandric/dev/portfolio-manager/iex-api
> tsc --noEmit --pretty && npm run lint

> iex-api@0.0.3 lint /Users/mandric/dev/portfolio-manager/iex-api
> tslint --project . --format stylish

no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
/Users/mandric/dev/portfolio-manager/iex-api/src/__tests__/attribution.spec.ts:5:33
ERROR: 5:33   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 6:29   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 7:43   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 8:46   newline-per-chained-call  When chaining calls, put method calls on new lines.

/Users/mandric/dev/portfolio-manager/iex-api/src/__tests__/client.spec.ts:29:43
ERROR: 29:43  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 30:20  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 31:26  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 38:43  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 39:20  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 40:26  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 48:43  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 49:20  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 50:26  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 58:43  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 59:20  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 60:26  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 75:20  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 81:30  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 82:31  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 83:42  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 84:30  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 85:32  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 86:30  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 92:20  newline-per-chained-call  When chaining calls, put method calls on new lines.

/Users/mandric/dev/portfolio-manager/iex-api/src/__tests__/index.spec.ts:7:38
ERROR: 7:38   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 8:34   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 9:48   newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 10:51  newline-per-chained-call  When chaining calls, put method calls on new lines.
ERROR: 14:24  newline-per-chained-call  When chaining calls, put method calls on new lines.

/Users/mandric/dev/portfolio-manager/iex-api/src/client.ts:9:11
ERROR: 9:11   prefer-readonly           Private member variable 'fetchFunction' is never reassigned; mark it as 'readonly'.
ERROR: 10:11  prefer-readonly           Private member variable 'httpsEndpoint' is never reassigned; mark it as 'readonly'.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! iex-api@0.0.3 lint: `tslint --project . --format stylish`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the iex-api@0.0.3 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mandric/.npm/_logs/2018-12-04T17_09_17_308Z-debug.log
npm ERR! Test failed.  See above for more details.