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"
},
"scripts": {
"test": "node test/index.js | tap-spec",
"prepublishOnly": "npm test"
"test": "node test/index.js",
"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 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) => {