mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
fix build 💚
This commit is contained in:
parent
2e113d9520
commit
42f90b790e
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue