@@ -96,129 +96,129 @@ describe('#compileCors()', () => {
9696 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
9797 . Resources . ApiGatewayMethodUsersCreateOptions
9898 . Properties . Integration . IntegrationResponses [ 0 ]
99- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ]
99+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ] ,
100100 ) . to . equal ( '\'*,http://example.com\'' ) ;
101101
102102 expect (
103103 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
104104 . Resources . ApiGatewayMethodUsersCreateOptions
105105 . Properties . Integration . IntegrationResponses [ 0 ]
106- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ]
106+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ] ,
107107 ) . to . equal ( '\'*\'' ) ;
108108
109109 expect (
110110 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
111111 . Resources . ApiGatewayMethodUsersCreateOptions
112112 . Properties . Integration . IntegrationResponses [ 0 ]
113- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ]
113+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ] ,
114114 ) . to . equal ( '\'OPTIONS,POST\'' ) ;
115115
116116 expect (
117117 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
118118 . Resources . ApiGatewayMethodUsersCreateOptions
119119 . Properties . Integration . IntegrationResponses [ 0 ]
120- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ]
120+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ] ,
121121 ) . to . equal ( '\'true\'' ) ;
122122
123123 expect (
124124 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
125125 . Resources . ApiGatewayMethodUsersCreateOptions
126126 . Properties . Integration . IntegrationResponses [ 0 ]
127- . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ]
127+ . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ] ,
128128 ) . to . equal ( '\'86400\'' ) ;
129129
130130 // users/update
131131 expect (
132132 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
133133 . Resources . ApiGatewayMethodUsersUpdateOptions
134134 . Properties . Integration . IntegrationResponses [ 0 ]
135- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ]
135+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ] ,
136136 ) . to . equal ( '\'http://example.com\'' ) ;
137137
138138 expect (
139139 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
140140 . Resources . ApiGatewayMethodUsersUpdateOptions
141141 . Properties . Integration . IntegrationResponses [ 0 ]
142- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ]
142+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ] ,
143143 ) . to . equal ( '\'OPTIONS,PUT\'' ) ;
144144
145145 expect (
146146 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
147147 . Resources . ApiGatewayMethodUsersUpdateOptions
148148 . Properties . Integration . IntegrationResponses [ 0 ]
149- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ]
149+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ] ,
150150 ) . to . equal ( '\'false\'' ) ;
151151
152152 expect (
153153 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
154154 . Resources . ApiGatewayMethodUsersUpdateOptions
155155 . Properties . Integration . IntegrationResponses [ 0 ]
156- . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ]
156+ . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ] ,
157157 ) . to . equal ( '\'86400\'' ) ;
158158
159159 // users/delete
160160 expect (
161161 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
162162 . Resources . ApiGatewayMethodUsersDeleteOptions
163163 . Properties . Integration . IntegrationResponses [ 0 ]
164- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ]
164+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ] ,
165165 ) . to . equal ( '\'*\'' ) ;
166166
167167 expect (
168168 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
169169 . Resources . ApiGatewayMethodUsersDeleteOptions
170170 . Properties . Integration . IntegrationResponses [ 0 ]
171- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ]
171+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ] ,
172172 ) . to . equal ( '\'CustomHeaderA,CustomHeaderB\'' ) ;
173173
174174 expect (
175175 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
176176 . Resources . ApiGatewayMethodUsersDeleteOptions
177177 . Properties . Integration . IntegrationResponses [ 0 ]
178- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ]
178+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ] ,
179179 ) . to . equal ( '\'OPTIONS,DELETE\'' ) ;
180180
181181 expect (
182182 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
183183 . Resources . ApiGatewayMethodUsersDeleteOptions
184184 . Properties . Integration . IntegrationResponses [ 0 ]
185- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ]
185+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ] ,
186186 ) . to . equal ( '\'false\'' ) ;
187187
188188 expect (
189189 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
190190 . Resources . ApiGatewayMethodUsersDeleteOptions
191191 . Properties . Integration . IntegrationResponses [ 0 ]
192- . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ]
192+ . ResponseParameters [ 'method.response.header.Access-Control-Max-Age' ] ,
193193 ) . to . equal ( '\'86400\'' ) ;
194194
195195 // users/any
196196 expect (
197197 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
198198 . Resources . ApiGatewayMethodUsersAnyOptions
199199 . Properties . Integration . IntegrationResponses [ 0 ]
200- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ]
200+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Origin' ] ,
201201 ) . to . equal ( '\'http://example.com\'' ) ;
202202
203203 expect (
204204 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
205205 . Resources . ApiGatewayMethodUsersAnyOptions
206206 . Properties . Integration . IntegrationResponses [ 0 ]
207- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ]
207+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Headers' ] ,
208208 ) . to . equal ( '\'*\'' ) ;
209209
210210 expect (
211211 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
212212 . Resources . ApiGatewayMethodUsersAnyOptions
213213 . Properties . Integration . IntegrationResponses [ 0 ]
214- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ]
214+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Methods' ] ,
215215 ) . to . equal ( '\'OPTIONS,DELETE,GET,HEAD,PATCH,POST,PUT\'' ) ;
216216
217217 expect (
218218 awsCompileApigEvents . serverless . service . provider . compiledCloudFormationTemplate
219219 . Resources . ApiGatewayMethodUsersAnyOptions
220220 . Properties . Integration . IntegrationResponses [ 0 ]
221- . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ]
221+ . ResponseParameters [ 'method.response.header.Access-Control-Allow-Credentials' ] ,
222222 ) . to . equal ( '\'false\'' ) ;
223223 } ) ;
224224 } ) ;
0 commit comments