@@ -279,7 +279,7 @@ describe('PreconditionFailedError', () => {
279279 precondition : 'unknown_precondition' ,
280280 type : 'precondition_failed' ,
281281 } ) . toString ( ) ,
282- ) . toBe ( 'PreconditionFailedError: precondition failed: unknown precondition ' )
282+ ) . toBe ( 'PreconditionFailedError: precondition failed: unknown_precondition ' )
283283 } )
284284
285285 it ( `parses a valid input for precondition precondition_failed` , ( ) => {
@@ -291,7 +291,7 @@ describe('PreconditionFailedError', () => {
291291 type : 'precondition_failed' ,
292292 } ) . toString ( ) ,
293293 ) . toBe (
294- 'PreconditionFailedError: precondition failed: resource is still in use , All servers must be removed from the private network before deleting it.' ,
294+ 'PreconditionFailedError: precondition failed: resource_still_in_use , All servers must be removed from the private network before deleting it.' ,
295295 )
296296 } )
297297
@@ -303,7 +303,7 @@ describe('PreconditionFailedError', () => {
303303 type : 'precondition_failed' ,
304304 } ) . toString ( ) ,
305305 ) . toBe (
306- 'PreconditionFailedError: precondition failed: attribute must be set ' ,
306+ 'PreconditionFailedError: precondition failed: attribute_must_be_set ' ,
307307 )
308308 } )
309309
@@ -314,7 +314,9 @@ describe('PreconditionFailedError', () => {
314314 precondition : 'wrong_precondition_key' ,
315315 type : 'precondition_failed' ,
316316 } ) . toString ( ) ,
317- ) . toBe ( 'PreconditionFailedError: precondition failed: ' )
317+ ) . toBe (
318+ 'PreconditionFailedError: precondition failed: wrong_precondition_key' ,
319+ )
318320 } )
319321
320322 it ( `doesn't parse invalid input` , ( ) => {
0 commit comments