Skip to content

Commit

Permalink
Specify content-type in Yoga CORS test (#6234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored and jtoar committed Aug 22, 2022
1 parent 6a67a77 commit 24e2525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/graphql-server/src/__tests__/cors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ describe('CORS', () => {
)
})

it('Returns CORS headers with multiValueHeaders in request,as MVH in response', async () => {
it('Returns CORS headers with multiValueHeaders in request, as MVH in response', async () => {
const handler = createGraphQLHandler({
loggerConfig: { logger: createLogger({}), options: {} },
sdls: {},
Expand All @@ -263,6 +263,7 @@ describe('CORS', () => {
body: JSON.stringify({ query: '{ me { id, name } }' }),
multiValueHeaders: {
origin: ['https://site2.two'],
'Content-Type': ['application/json'],
},
httpMethod: 'POST',
})
Expand Down

0 comments on commit 24e2525

Please sign in to comment.