diff --git a/package.json b/package.json index fd0f038e..7c4e25bf 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "vbb-stations-autocomplete": "^2.9.0" }, "scripts": { - "test": "node test/index.js | tap-spec", - "prepublishOnly": "npm test" + "test": "node test/index.js", + "prepublishOnly": "npm test | tap-spec" } } diff --git a/test/util.js b/test/util.js index 309e84e7..323a185e 100644 --- a/test/util.js +++ b/test/util.js @@ -90,7 +90,7 @@ const when = new Date(+floor(new Date(), 'week') + week + 10 * hour) const isValidWhen = (w) => { const ts = +new Date(w) if (Number.isNaN(ts)) return false - return isRoughlyEqual(10 * hour, +when, ts) + return isRoughlyEqual(12 * hour, +when, ts) } const assertValidWhen = (t, w) => {