Skip to content

Commit

Permalink
Fix merge after vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 committed Jan 21, 2024
1 parent 5900629 commit b32eca7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/api/src/__tests__/normalizeRequest.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Headers } from '@whatwg-node/fetch'
import type { APIGatewayProxyEvent } from 'aws-lambda'
import { test, expect } from 'vitest'
import { test, expect, describe } from 'vitest'

import { normalizeRequest } from '../transforms'

Expand Down Expand Up @@ -55,7 +55,7 @@ export const createMockedLambdaEvent = (
}

describe('Lambda Request', () => {
it('Normalizes an aws event with base64', async () => {
test('Normalizes an aws event with base64', async () => {
const corsEventB64 = createMockedLambdaEvent(
'POST',
Buffer.from(JSON.stringify({ bazinga: 'hello_world' }), 'utf8').toString(
Expand All @@ -74,7 +74,7 @@ describe('Lambda Request', () => {
})
})

it('Handles CORS requests with and without b64 encoded', async () => {
test('Handles CORS requests with and without b64 encoded', async () => {
const corsEventB64 = createMockedLambdaEvent('OPTIONS', undefined, true)

expect(await normalizeRequest(corsEventB64)).toEqual({
Expand All @@ -100,7 +100,7 @@ describe('Lambda Request', () => {
})

describe('Fetch API Request', () => {
it('Normalizes a fetch event', async () => {
test('Normalizes a fetch event', async () => {
const fetchEvent = new Request(
'http://localhost:9210/graphql?whatsup=doc&its=bugs',
{
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('Fetch API Request', () => {
expect(partial.headers.get('content-type')).toEqual('application/json')
})

it('Handles an empty body', async () => {
test('Handles an empty body', async () => {
const headers = {
'content-type': 'application/json',
'x-custom-header': 'bazinga',
Expand Down

0 comments on commit b32eca7

Please sign in to comment.