We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e011ff commit a9414e9Copy full SHA for a9414e9
test/smoke.test.js
@@ -116,14 +116,14 @@ describe('cache middleware', () => {
116
expect(res.body).to.equal('world')
117
expect(res.headers['x-cache-hit']).to.equal('1')
118
expect(res.headers['cache-control']).to.equal('no-cache')
119
- expect(res.headers['etag']).to.equal('1')
+ expect(res.headers.etag).to.equal('1')
120
})
121
122
it('cache hit (buffer) - Etag', async () => {
123
const res = await got('http://localhost:3000/cache-buffer')
124
125
126
127
128
129
it('cache hit (buffer) - If-None-Match', async () => {
0 commit comments