@@ -67,7 +67,9 @@ describe("Configuration validation test", () => {
6767 region : "fr-par" ,
6868 } ;
6969
70- expect ( ( ) => this . validateTriggers ( [ { sqs : validTrigger } ] ) ) . not . toThrow ( ) ;
70+ expect ( ( ) =>
71+ this . validateTriggers ( [ { sqs : validTrigger } ] )
72+ ) . not . toThrow ( ) ;
7173 } ) ;
7274
7375 it ( "Should validate SQS trigger without optional fields" , ( ) => {
@@ -76,7 +78,9 @@ describe("Configuration validation test", () => {
7678 queue : "my-queue-name" ,
7779 } ;
7880
79- expect ( ( ) => this . validateTriggers ( [ { sqs : validTrigger } ] ) ) . not . toThrow ( ) ;
81+ expect ( ( ) =>
82+ this . validateTriggers ( [ { sqs : validTrigger } ] )
83+ ) . not . toThrow ( ) ;
8084 } ) ;
8185
8286 it ( "Should reject SQS trigger with invalid name" , ( ) => {
@@ -98,7 +102,9 @@ describe("Configuration validation test", () => {
98102
99103 const errors = this . validateTriggers ( [ { sqs : invalidTrigger } ] ) ;
100104 expect ( errors ) . toHaveLength ( 1 ) ;
101- expect ( errors [ 0 ] ) . toContain ( 'Invalid trigger "my-sqs-trigger": queue is invalid' ) ;
105+ expect ( errors [ 0 ] ) . toContain (
106+ 'Invalid trigger "my-sqs-trigger": queue is invalid'
107+ ) ;
102108 } ) ;
103109
104110 it ( "Should reject SQS trigger with invalid projectId" , ( ) => {
@@ -110,7 +116,9 @@ describe("Configuration validation test", () => {
110116
111117 const errors = this . validateTriggers ( [ { sqs : invalidTrigger } ] ) ;
112118 expect ( errors ) . toHaveLength ( 1 ) ;
113- expect ( errors [ 0 ] ) . toContain ( 'Invalid trigger "my-sqs-trigger": projectId is invalid' ) ;
119+ expect ( errors [ 0 ] ) . toContain (
120+ 'Invalid trigger "my-sqs-trigger": projectId is invalid'
121+ ) ;
114122 } ) ;
115123
116124 it ( "Should reject SQS trigger with invalid region" , ( ) => {
@@ -122,7 +130,9 @@ describe("Configuration validation test", () => {
122130
123131 const errors = this . validateTriggers ( [ { sqs : invalidTrigger } ] ) ;
124132 expect ( errors ) . toHaveLength ( 1 ) ;
125- expect ( errors [ 0 ] ) . toContain ( 'Invalid trigger "my-sqs-trigger": region is unknown' ) ;
133+ expect ( errors [ 0 ] ) . toContain (
134+ 'Invalid trigger "my-sqs-trigger": region is unknown'
135+ ) ;
126136 } ) ;
127137
128138 it ( "Should reject SQS trigger without name" , ( ) => {
@@ -132,7 +142,7 @@ describe("Configuration validation test", () => {
132142
133143 const errors = this . validateTriggers ( [ { sqs : invalidTrigger } ] ) ;
134144 expect ( errors ) . toHaveLength ( 1 ) ;
135- expect ( errors [ 0 ] ) . toContain ( ' : name is invalid' ) ;
145+ expect ( errors [ 0 ] ) . toContain ( " : name is invalid" ) ;
136146 } ) ;
137147
138148 it ( "Should reject SQS trigger without queue" , ( ) => {
@@ -142,7 +152,9 @@ describe("Configuration validation test", () => {
142152
143153 const errors = this . validateTriggers ( [ { sqs : invalidTrigger } ] ) ;
144154 expect ( errors ) . toHaveLength ( 1 ) ;
145- expect ( errors [ 0 ] ) . toContain ( 'Invalid trigger "my-sqs-trigger": queue is invalid' ) ;
155+ expect ( errors [ 0 ] ) . toContain (
156+ 'Invalid trigger "my-sqs-trigger": queue is invalid'
157+ ) ;
146158 } ) ;
147159 } ) ;
148160} ) ;
0 commit comments