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', () => {