Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 5, 2017
1 parent 82275b6 commit 90c8b21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"send": "0.15.0"
},
"devDependencies": {
"eslint": "3.16.1",
"eslint-config-standard": "6.2.1",
"eslint": "3.17.0",
"eslint-config-standard": "7.0.0",
"eslint-plugin-markdown": "1.0.0-beta.4",
"eslint-plugin-promise": "3.4.0",
"eslint-plugin-standard": "2.0.1",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "2.1.1",
"istanbul": "0.4.5",
"mocha": "2.5.3",
"supertest": "1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,14 @@ describe('serveStatic()', function () {
it('should accept string', function (done) {
request(createServer(fixtures, {'maxAge': '30d'}))
.get('/todo.txt')
.expect('cache-control', 'public, max-age=' + 60 * 60 * 24 * 30)
.expect('cache-control', 'public, max-age=' + (60 * 60 * 24 * 30))
.expect(200, done)
})

it('should be reasonable when infinite', function (done) {
request(createServer(fixtures, {'maxAge': Infinity}))
.get('/todo.txt')
.expect('cache-control', 'public, max-age=' + 60 * 60 * 24 * 365)
.expect('cache-control', 'public, max-age=' + (60 * 60 * 24 * 365))
.expect(200, done)
})
})
Expand Down

0 comments on commit 90c8b21

Please sign in to comment.