Skip to content

Commit

Permalink
test: add u unicode flag to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 21, 2023
1 parent 7f34353 commit 86ceff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/global-compress.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ test('It should not compress :', async (t) => {
t.plan(2)

const fastify = Fastify()
await fastify.register(compressPlugin, { customTypes: /x-user-header$/ })
await fastify.register(compressPlugin, { customTypes: /x-user-header$/u })

fastify.get('/', (request, reply) => {
reply
Expand Down Expand Up @@ -1101,7 +1101,7 @@ test('It should not compress :', async (t) => {
t.plan(2)

const fastify = Fastify()
await fastify.register(compressPlugin, { customTypes: /x-user-header$/ })
await fastify.register(compressPlugin, { customTypes: /x-user-header$/u })

fastify.get('/', (request, reply) => {
reply
Expand Down Expand Up @@ -2445,7 +2445,7 @@ test('`Accept-Encoding` request header values :', async (t) => {
test('It should compress data if `customTypes` is set and matches `Content-Type` reply header value', async (t) => {
t.plan(2)
const fastify = Fastify()
await fastify.register(compressPlugin, { customTypes: /x-user-header$/ })
await fastify.register(compressPlugin, { customTypes: /x-user-header$/u })

fastify.get('/', (request, reply) => {
reply
Expand Down

0 comments on commit 86ceff0

Please sign in to comment.