From 4e3a3dcf40ea26bccb7f2bb27d5bb76183ea5982 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 18 May 2017 14:53:58 +0700 Subject: [PATCH] Rename /no-cache test endpoint to /no-store --- test/cache.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cache.js b/test/cache.js index b5bb33b..ef463de 100644 --- a/test/cache.js +++ b/test/cache.js @@ -8,11 +8,11 @@ let s; test.before('setup', async () => { s = await createServer(); - let noCacheIndex = 0; - s.on('/no-cache', (req, res) => { - noCacheIndex++; + let noStoreIndex = 0; + s.on('/no-store', (req, res) => { + noStoreIndex++; res.setHeader('Cache-Control', 'public, no-cache, no-store'); - res.end(noCacheIndex.toString()); + res.end(noStoreIndex.toString()); }); let cacheIndex = 0; @@ -25,7 +25,7 @@ test.before('setup', async () => { }); test('Non cacheable responses are not cached', async t => { - const endpoint = '/no-cache'; + const endpoint = '/no-store'; const cache = new Map(); const firstResponseInt = parseInt((await got(s.url + endpoint, {cache})).body, 10);