From 42f90b790ec610bc41ce8f7182f0462dc2c1c1a8 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 29 Nov 2017 02:12:49 +0100 Subject: [PATCH] =?UTF-8?q?fix=20build=20=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- test/util.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) => {