@@ -121,14 +121,6 @@ describe('FunctionBuilder', () => {
121121 expect ( fn . __trigger . timeout ) . to . deep . equal ( '90s' ) ;
122122 } ) ;
123123
124- it ( 'should fail if valid runtime options but unsupported region are set (reverse order)' , ( ) => {
125- expect ( ( ) => {
126- functions
127- . runWith ( { timeoutSeconds : 90 , memory : '256MB' } )
128- . region ( 'unsupported' as any ) ;
129- } ) . to . throw ( Error , 'region' ) ;
130- } ) ;
131-
132124 it ( 'should fail if supported region but invalid runtime options are set (reverse order)' , ( ) => {
133125 expect ( ( ) => {
134126 functions
@@ -165,28 +157,6 @@ describe('FunctionBuilder', () => {
165157 } ) . to . throw ( Error , 'TimeoutSeconds' ) ;
166158 } ) ;
167159
168- it ( 'should throw an error if user chooses an invalid region' , ( ) => {
169- expect ( ( ) => {
170- return functions . region ( 'unsupported' as any ) ;
171- } ) . to . throw ( Error , 'region' ) ;
172-
173- expect ( ( ) => {
174- return functions . region ( 'unsupported' as any ) . runWith ( {
175- timeoutSeconds : 500 ,
176- } as any ) ;
177- } ) . to . throw ( Error , 'region' ) ;
178-
179- expect ( ( ) => {
180- return functions . region ( 'unsupported' as any , 'us-east1' ) ;
181- } ) . to . throw ( Error , 'region' ) ;
182-
183- expect ( ( ) => {
184- return functions . region ( 'unsupported' as any , 'us-east1' ) . runWith ( {
185- timeoutSeconds : 500 ,
186- } as any ) ;
187- } ) . to . throw ( Error , 'region' ) ;
188- } ) ;
189-
190160 it ( 'should throw an error if user chooses no region when using .region()' , ( ) => {
191161 expect ( ( ) => {
192162 return functions . region ( ) ;
0 commit comments