mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-06-17 13:15:00 +02:00
19 lines
577 B
JavaScript
19 lines
577 B
JavaScript
const run = require('server/test/run');
|
|
|
|
describe('compress', () => {
|
|
it('works with the defaults', async () => {
|
|
const res = await run(() => 'Hello world').get('/');
|
|
expect(res.body).toBe('Hello world');
|
|
});
|
|
|
|
it('works with an empty option object', async () => {
|
|
const res = await run({ compress: {} }, () => 'Hello world').get('/');
|
|
expect(res.body).toBe('Hello world');
|
|
});
|
|
|
|
it('works without compress', async () => {
|
|
const res = await run({ compress: false }, () => 'Hello world').get('/');
|
|
expect(res.body).toBe('Hello world');
|
|
});
|
|
});
|