Commit 2b1c4ad6 authored by Jiachi Liu's avatar Jiachi Liu

add test

parent 1b3b090d
......@@ -46,7 +46,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-city']).toBe('Montréal')
})
......@@ -64,7 +63,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-city']).toBe('München')
})
......@@ -82,7 +80,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-country']).toBe('España')
})
......@@ -101,7 +98,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-city']).toBe('Malmö')
expect(headers['x-region']).toBe('København')
})
......@@ -120,7 +116,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-region']).toBe('Île-de-France')
})
......@@ -138,7 +133,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-country']).toBe('Österreich')
})
......@@ -159,7 +153,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-city']).toBe('Montréal')
expect(headers['x-region']).toBe('Île-de-France')
expect(headers['x-country']).toBe('Österreich')
......@@ -180,7 +173,6 @@ describe('Middleware Non-ASCII Headers', () => {
expect(res.status).toBe(200)
const headers = await res.json()
expect(headers['x-middleware-ran']).toBe('true')
expect(headers['x-city']).toBe('São Paulo')
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment