Skip to content

Commit

Permalink
Fix toUTCString() being called in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jan 7, 2017
1 parent c75980a commit f32c420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/expired.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
Expand Down

0 comments on commit f32c420

Please sign in to comment.