From ba71853a56160a9ffaaa322b0855c2a26d618317 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Thu, 23 Apr 2020 00:14:43 +0200 Subject: [PATCH] revert: add brotli test back This reverts commit 8be99d18ac3c339e00ce6daf7303e77c2f915baa. --- test/axios.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/axios.test.js b/test/axios.test.js index ea8bbb4..606c4e8 100644 --- a/test/axios.test.js +++ b/test/axios.test.js @@ -82,6 +82,18 @@ const testSuite = () => { expect(d).not.toBeNull() expect(b).not.toBe(d) }) + + test('ssr no brotli', async () => { + const makeReq = login => axios + .get(url('/ssr' + (login ? '?login' : ''))) + .then(r => r.data) + .then(h => /encoding-\$(.*)\$/.exec(h)) + .then(m => (m && m[1] ? m[1] : null)) + + const result = await makeReq() + + expect(result).toBe('gzip, deflate') + }) } describe('module', () => {