Skip to content

Commit 5e198ca

Browse files
committed
Update tests
1 parent be2bc2d commit 5e198ca

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

test/global-decompress.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test('It should decompress the request payload :', async (t) => {
3939
payload: createPayload(zlib.createBrotliCompress)
4040
})
4141
t.equal(response.statusCode, 200)
42-
t.equal(response.body, 'fastify-compress')
42+
t.equal(response.body, '@fastify/compress')
4343
})
4444

4545
t.test('using deflate algorithm when `Content-Encoding` request header value is set to `deflate`', async (t) => {
@@ -62,7 +62,7 @@ test('It should decompress the request payload :', async (t) => {
6262
payload: createPayload(zlib.createDeflate)
6363
})
6464
t.equal(response.statusCode, 200)
65-
t.equal(response.body, 'fastify-compress')
65+
t.equal(response.body, '@fastify/compress')
6666
})
6767

6868
t.test('using gzip algorithm when `Content-Encoding` request header value is set to `gzip`', async (t) => {
@@ -85,7 +85,7 @@ test('It should decompress the request payload :', async (t) => {
8585
payload: createPayload(zlib.createGzip)
8686
})
8787
t.equal(response.statusCode, 200)
88-
t.equal(response.body, 'fastify-compress')
88+
t.equal(response.body, '@fastify/compress')
8989
})
9090

9191
t.test('using the `forceRequestEncoding` provided algorithm over the `Content-Encoding` request header value', async (t) => {
@@ -108,7 +108,7 @@ test('It should decompress the request payload :', async (t) => {
108108
payload: createPayload(zlib.createGzip)
109109
})
110110
t.equal(response.statusCode, 200)
111-
t.equal(response.body, 'fastify-compress')
111+
t.equal(response.body, '@fastify/compress')
112112
})
113113
})
114114

@@ -132,7 +132,7 @@ test('It should not decompress :', async (t) => {
132132
payload: createPayload()
133133
})
134134
t.equal(response.statusCode, 200)
135-
t.equal(response.body, 'fastify-compress')
135+
t.equal(response.body, '@fastify/compress')
136136
})
137137

138138
t.test('when `Content-Encoding` request header value is set to `identity`', async (t) => {
@@ -155,7 +155,7 @@ test('It should not decompress :', async (t) => {
155155
payload: createPayload()
156156
})
157157
t.equal(response.statusCode, 200)
158-
t.equal(response.body, 'fastify-compress')
158+
t.equal(response.body, '@fastify/compress')
159159
})
160160
})
161161

test/routes-decompress.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test('When using routes `decompress` settings :', async (t) => {
5555
t.equal(usedCustomGlobal, true)
5656

5757
t.equal(response.statusCode, 200)
58-
t.equal(response.body, 'fastify-compress')
58+
t.equal(response.body, '@fastify/compress')
5959

6060
usedCustom = false
6161
usedCustomGlobal = false
@@ -73,7 +73,7 @@ test('When using routes `decompress` settings :', async (t) => {
7373
t.equal(usedCustomGlobal, false)
7474

7575
t.equal(response.statusCode, 200)
76-
t.equal(response.body, 'fastify-compress')
76+
t.equal(response.body, '@fastify/compress')
7777
})
7878

7979
t.test('it should decompress data using the route custom provided `createGunzip` method', async (t) => {
@@ -112,7 +112,7 @@ test('When using routes `decompress` settings :', async (t) => {
112112
t.equal(usedCustomGlobal, true)
113113

114114
t.equal(response.statusCode, 200)
115-
t.equal(response.body, 'fastify-compress')
115+
t.equal(response.body, '@fastify/compress')
116116

117117
usedCustom = false
118118
usedCustomGlobal = false
@@ -131,7 +131,7 @@ test('When using routes `decompress` settings :', async (t) => {
131131
t.equal(usedCustomGlobal, false)
132132

133133
t.equal(response.statusCode, 200)
134-
t.equal(response.body, 'fastify-compress')
134+
t.equal(response.body, '@fastify/compress')
135135
})
136136

137137
t.test('it should not decompress data when route `decompress` option is set to `false`', async (t) => {
@@ -163,7 +163,7 @@ test('When using routes `decompress` settings :', async (t) => {
163163
t.equal(usedCustomGlobal, true)
164164

165165
t.equal(response.statusCode, 200)
166-
t.equal(response.body, 'fastify-compress')
166+
t.equal(response.body, '@fastify/compress')
167167

168168
usedCustomGlobal = false
169169
})
@@ -251,7 +251,7 @@ test('When using the old routes `{ config: decompress }` option :', async (t) =>
251251
t.equal(usedCustomGlobal, true)
252252

253253
t.equal(response.statusCode, 200)
254-
t.equal(response.body, 'fastify-compress')
254+
t.equal(response.body, '@fastify/compress')
255255

256256
usedCustom = false
257257
usedCustomGlobal = false
@@ -270,7 +270,7 @@ test('When using the old routes `{ config: decompress }` option :', async (t) =>
270270
t.equal(usedCustomGlobal, false)
271271

272272
t.equal(response.statusCode, 200)
273-
t.equal(response.body, 'fastify-compress')
273+
t.equal(response.body, '@fastify/compress')
274274
})
275275

276276
t.test('it should use the old routes `{ config: decompress }` options over routes `decompress` options', async (t) => {

0 commit comments

Comments
 (0)