Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Feb 10, 2020
1 parent 1988c3f commit 8ff37cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/responsetest.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,10 @@ describe('Response headers', function() {
headers: {
'cache-control': '',
pragma: 'no-cache',
'last-modified': new Date().toGMTString(),
'last-modified': new Date(Date.now() - 10000).toGMTString(),
},
});
assert(cache.maxAge() > 0);
assert(!cache.stale());
});

Expand Down

0 comments on commit 8ff37cb

Please sign in to comment.