28 Commits (master)

Author SHA1 Message Date
Luke Childs c653b408da Keep XO happy 8 years ago
Luke Childs b07e091270 Test headers can contain status code 8 years ago
Luke Childs 8f876d397c Test throw error if Date header is missing 8 years ago
Luke Childs 4cc917fcfc Test throw error if header argument is missing 8 years ago
Luke Childs f32c420651 Fix `toUTCString()` being called in the wrong place 8 years ago
Luke Childs 40200308ba Add tests for currentDate argument 8 years ago
Luke Childs c0abbcf29c Use different dates for Date/Expires headers so bugs don't slip through 8 years ago
Luke Childs 18e4e1e502 Don't freeze `Date` for expired.on tests 8 years ago
Luke Childs 4940ec8319 Test expired.on prefers Cache-Control over Expires header 8 years ago
Luke Childs 28cac6df52 Test expired.on uses Expires header 8 years ago
Luke Childs 1c773154ae Test headers can be passed in as a string 8 years ago
Luke Childs 6a9051d138 Test headers can be passed in as an object 8 years ago
Luke Childs 65578a6987 Test expired.on takes age into account 8 years ago
Luke Childs 0170252591 Swap subSeconds for addSeconds 8 years ago
Luke Childs f48d614600 Test expired.on returns correct expirey date for stale cache 8 years ago
Luke Childs 72e07140ff Test expired.on returns correct expirey date for instantly stale cache 8 years ago
Luke Childs c22971a15e Test expired.on returns correct expirey date for valid cache 8 years ago
Luke Childs 1a4eaff85e Test expired.on is a function 8 years ago
Luke Childs 3df8fd9175 Name test check variables 8 years ago
Luke Childs 752bc6f836 Test expired.in returns negative ms for stale cache 8 years ago
Luke Childs db0e013b28 Test expired.in returns zero ms for instantly stale cache 8 years ago
Luke Childs e95252b664 Test expired.in returns positive ms for valid cache 8 years ago
Luke Childs a0b01ec1d8 Test expired.in is a function 8 years ago
Luke Childs b552e87388 Test expired returns true for stale cache 8 years ago
Luke Childs cf6816c766 Test expired returns false for valid cache 8 years ago
Luke Childs 15a439a45d unit.js -> expired.js 8 years ago
Luke Childs 9f551432d8 Drop standard for xo 8 years ago
Luke Childs adb363e8bc Extract expired from onionoo-node-client 8 years ago