Skip to content

Commit

Permalink
revert: add brotli test back
Browse files Browse the repository at this point in the history
This reverts commit 8be99d1.
  • Loading branch information
pooya parsa committed Apr 22, 2020
1 parent ca320f1 commit ba71853
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/axios.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit ba71853

Please sign in to comment.