alphavantage
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -28,3 +28,5 @@ 'use strict'; | ||
`interval=${interval}` | ||
].filter(value => value !== undefined).join('&')}` | ||
] | ||
.filter(value => value !== undefined) | ||
.join('&')}` | ||
}); |
{ | ||
"name": "alphavantage", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A simple interface to the Alpha Vantage API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,2 @@ # AlphaVantage | ||
**Checkout the [API DOCS](/DOCS.md) for full API documentation** | ||
### Roadmap | ||
@@ -16,0 +14,0 @@ |
'use strict'; | ||
test(`initialization without a config throws an error`, () => { | ||
expect.assertions(1); | ||
try { | ||
const alpha = require('../')() | ||
} | ||
catch (e) { | ||
expect(e.message).toEqual(`Missing config for alphavantage module`) | ||
} | ||
expect.assertions(1); | ||
try { | ||
const alpha = require('../')(); | ||
} catch (e) { | ||
expect(e.message).toEqual(`Missing config for alphavantage module`); | ||
} | ||
}); | ||
test(`initialization without an api key throws an error`, () => { | ||
expect.assertions(1); | ||
try { | ||
const alpha = require('../')({}) | ||
} | ||
catch (e) { | ||
expect(e.message).toEqual(`Missing Alpha Vantage config settings: key`) | ||
} | ||
}) | ||
expect.assertions(1); | ||
try { | ||
const alpha = require('../')({}); | ||
} catch (e) { | ||
expect(e.message).toEqual(`Missing Alpha Vantage config settings: key`); | ||
} | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10917
90