@tride/grab-handler
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -86,7 +86,3 @@ const { create } = require("axios"); | ||
return { | ||
price: { | ||
fixed, | ||
high: upperBound / 100, | ||
low: lowerBound / 100 | ||
}, | ||
price: upperBound / 100, | ||
requestKey: { | ||
@@ -93,0 +89,0 @@ key: signature, |
{ | ||
"name": "@tride/grab-handler", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:trride/grab-handler.git", |
@@ -39,6 +39,3 @@ import test from "ava"; | ||
t.is(typeof data, TYPE.OBJECT); | ||
t.is(typeof data.price, TYPE.OBJECT); | ||
t.is(typeof data.price.fixed, TYPE.BOOLEAN); | ||
t.is(typeof data.price.high, TYPE.NUMBER); | ||
t.is(typeof data.price.low, TYPE.NUMBER); | ||
t.is(typeof data.price, TYPE.NUMBER); | ||
}); | ||
@@ -55,3 +52,3 @@ | ||
test("Book and Cancel", async t => { | ||
const { price: { high }, requestKey: { key } } = await getEstimate( | ||
const { price, requestKey: { key } } = await getEstimate( | ||
TEST_START, | ||
@@ -61,3 +58,3 @@ TEST_END | ||
t.is(typeof key, TYPE.STRING); | ||
t.is(typeof high, TYPE.NUMBER); | ||
t.is(typeof price, TYPE.NUMBER); | ||
@@ -64,0 +61,0 @@ const { requestId } = await requestRide(key, TEST_START, TEST_END); |
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
117080
259