From f32c420651aeb5c241f10766d88e1d89330a72a1 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 7 Jan 2017 18:06:13 +0700 Subject: [PATCH] Fix `toUTCString()` being called in the wrong place --- test/expired.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/expired.js b/test/expired.js index ff4b9ad..20442da 100644 --- a/test/expired.js +++ b/test/expired.js @@ -19,7 +19,7 @@ test('expired returns false for valid cache', t => { test('expired returns true for stale cache', t => { const headers = { - date: subSeconds(new Date().toUTCString(), 500), + date: subSeconds(new Date(), 500).toUTCString(), age: 0, 'cache-control': 'public, max-age=300' };