@@ -24,7 +24,7 @@ describe('Parser', () => {
2424 } ) ;
2525 const JSONPayload = { name : 'John' , age : 18 } ;
2626
27- it ( 'parses an event with schema and envelope' , async ( ) => {
27+ it ( 'parses an event with schema and envelope' , ( ) => {
2828 // Prepare
2929 const event = structuredClone ( baseSqsEvent ) ;
3030 event . Records [ 1 ] . body = 'bar' ;
@@ -37,15 +37,15 @@ describe('Parser', () => {
3737 expect ( result ) . toStrictEqual ( [ 'Test message.' , 'bar' ] ) ;
3838 } ) ;
3939
40- it ( 'throws when envelope does not match' , async ( ) => {
40+ it ( 'throws when envelope does not match' , ( ) => {
4141 // Prepare
4242 const event = structuredClone ( baseEventBridgeEvent ) ;
4343
4444 // Act & Assess
4545 expect ( ( ) => parse ( event , SqsEnvelope , z . string ( ) ) ) . toThrow ( ) ;
4646 } ) ;
4747
48- it ( 'throws when schema does not match' , async ( ) => {
48+ it ( 'throws when schema does not match' , ( ) => {
4949 // Prepare
5050 const event = structuredClone ( baseSqsEvent ) ;
5151 // @ts -expect-error - setting an invalid body
@@ -55,7 +55,7 @@ describe('Parser', () => {
5555 expect ( ( ) => parse ( event , SqsEnvelope , z . string ( ) ) ) . toThrow ( ) ;
5656 } ) ;
5757
58- it ( 'parses the event successfully' , async ( ) => {
58+ it ( 'parses the event successfully' , ( ) => {
5959 // Prepare
6060 const event = 42 ;
6161
@@ -66,15 +66,15 @@ describe('Parser', () => {
6666 expect ( result ) . toEqual ( event ) ;
6767 } ) ;
6868
69- it ( 'throws when the event does not match the schema' , async ( ) => {
69+ it ( 'throws when the event does not match the schema' , ( ) => {
7070 // Prepare
7171 const event = structuredClone ( JSONPayload ) ;
7272
7373 // Act & Assess
7474 expect ( ( ) => parse ( event , undefined , z . number ( ) ) ) . toThrow ( ) ;
7575 } ) ;
7676
77- it ( 'returns the payload when using safeParse' , async ( ) => {
77+ it ( 'returns the payload when using safeParse' , ( ) => {
7878 // Prepare
7979 const event = structuredClone ( JSONPayload ) ;
8080
@@ -88,7 +88,7 @@ describe('Parser', () => {
8888 } ) ;
8989 } ) ;
9090
91- it ( 'returns the error when using safeParse and the payload is invalid' , async ( ) => {
91+ it ( 'returns the error when using safeParse and the payload is invalid' , ( ) => {
9292 // Prepare
9393 const event = structuredClone ( JSONPayload ) ;
9494
@@ -103,7 +103,7 @@ describe('Parser', () => {
103103 } ) ;
104104 } ) ;
105105
106- it ( 'returns the payload when using safeParse with envelope' , async ( ) => {
106+ it ( 'returns the payload when using safeParse with envelope' , ( ) => {
107107 // Prepare
108108 const detail = structuredClone ( JSONPayload ) ;
109109 const event = structuredClone ( baseEventBridgeEvent ) ;
@@ -119,7 +119,7 @@ describe('Parser', () => {
119119 } ) ;
120120 } ) ;
121121
122- it ( 'returns an error when using safeParse with envelope and the payload is invalid' , async ( ) => {
122+ it ( 'returns an error when using safeParse with envelope and the payload is invalid' , ( ) => {
123123 // Prepare
124124 const event = structuredClone ( baseEventBridgeEvent ) ;
125125
0 commit comments