Skip to content

Commit b32eca7

Browse files
committed
Fix merge after vitest
1 parent 5900629 commit b32eca7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/api/src/__tests__/normalizeRequest.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Headers } from '@whatwg-node/fetch'
22
import type { APIGatewayProxyEvent } from 'aws-lambda'
3-
import { test, expect } from 'vitest'
3+
import { test, expect, describe } from 'vitest'
44

55
import { normalizeRequest } from '../transforms'
66

@@ -55,7 +55,7 @@ export const createMockedLambdaEvent = (
5555
}
5656

5757
describe('Lambda Request', () => {
58-
it('Normalizes an aws event with base64', async () => {
58+
test('Normalizes an aws event with base64', async () => {
5959
const corsEventB64 = createMockedLambdaEvent(
6060
'POST',
6161
Buffer.from(JSON.stringify({ bazinga: 'hello_world' }), 'utf8').toString(
@@ -74,7 +74,7 @@ describe('Lambda Request', () => {
7474
})
7575
})
7676

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

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

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

132-
it('Handles an empty body', async () => {
132+
test('Handles an empty body', async () => {
133133
const headers = {
134134
'content-type': 'application/json',
135135
'x-custom-header': 'bazinga',

0 commit comments

Comments
 (0)