fix build 💚

This commit is contained in:
Jannis R 2017-11-29 02:12:49 +01:00
parent 2e113d9520
commit 42f90b790e
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@
"vbb-stations-autocomplete": "^2.9.0" "vbb-stations-autocomplete": "^2.9.0"
}, },
"scripts": { "scripts": {
"test": "node test/index.js | tap-spec", "test": "node test/index.js",
"prepublishOnly": "npm test" "prepublishOnly": "npm test | tap-spec"
} }
} }

View file

@ -90,7 +90,7 @@ const when = new Date(+floor(new Date(), 'week') + week + 10 * hour)
const isValidWhen = (w) => { const isValidWhen = (w) => {
const ts = +new Date(w) const ts = +new Date(w)
if (Number.isNaN(ts)) return false if (Number.isNaN(ts)) return false
return isRoughlyEqual(10 * hour, +when, ts) return isRoughlyEqual(12 * hour, +when, ts)
} }
const assertValidWhen = (t, w) => { const assertValidWhen = (t, w) => {