Skip to content

Commit

Permalink
test: remove old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi committed Jun 26, 2024
1 parent 41cf00a commit bbe67fb
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions packages/parser/tests/unit/schema/apigwv2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,61 +100,4 @@ describe('API Gateway HTTP (v2) Schemas', () => {
expect(parsedEvent).toEqual(event);
});
});

/* it('should parse api gateway v2 event', () => {
const apiGatewayProxyV2Event = TestEvents.apiGatewayProxyV2Event;
expect(APIGatewayProxyEventV2Schema.parse(apiGatewayProxyV2Event)).toEqual(
apiGatewayProxyV2Event
);
});
it('should parse api gateway v2 event with GET method', () => {
const apiGatewayProxyV2Event_GET = TestEvents.apiGatewayProxyV2Event_GET;
expect(
APIGatewayProxyEventV2Schema.parse(apiGatewayProxyV2Event_GET)
).toEqual(apiGatewayProxyV2Event_GET);
});
it('should parse api gateway v2 event with path trailing slash', () => {
const apiGatewayProxyV2EventPathTrailingSlash =
TestEvents.apiGatewayProxyV2EventPathTrailingSlash;
expect(
APIGatewayProxyEventV2Schema.parse(
apiGatewayProxyV2EventPathTrailingSlash
)
).toEqual(apiGatewayProxyV2EventPathTrailingSlash);
});
it('should parse api gateway v2 event with iam', () => {
const apiGatewayProxyV2IamEvent = TestEvents.apiGatewayProxyV2IamEvent;
expect(
APIGatewayProxyEventV2Schema.parse(apiGatewayProxyV2IamEvent)
).toEqual(apiGatewayProxyV2IamEvent);
});
it('should parse api gateway v2 event with lambda authorizer', () => {
const apiGatewayProxyV2LambdaAuthorizerEvent =
TestEvents.apiGatewayProxyV2LambdaAuthorizerEvent;
expect(
APIGatewayProxyEventV2Schema.parse(apiGatewayProxyV2LambdaAuthorizerEvent)
).toEqual(apiGatewayProxyV2LambdaAuthorizerEvent);
});
it('should parse api gateway v2 event with other get event', () => {
const apiGatewayProxyV2OtherGetEvent =
TestEvents.apiGatewayProxyV2OtherGetEvent;
expect(
APIGatewayProxyEventV2Schema.parse(apiGatewayProxyV2OtherGetEvent)
).toEqual(apiGatewayProxyV2OtherGetEvent);
});
it('should parse api gateway v2 event with schema middleware', () => {
const apiGatewayProxyV2SchemaMiddlewareValidEvent =
TestEvents.apiGatewayProxyV2SchemaMiddlewareValidEvent;
expect(
APIGatewayProxyEventV2Schema.parse(
apiGatewayProxyV2SchemaMiddlewareValidEvent
)
).toEqual(apiGatewayProxyV2SchemaMiddlewareValidEvent);
}); */
});

0 comments on commit bbe67fb

Please sign in to comment.