File tree 1 file changed +4
-4
lines changed
packages/firestore/test/unit/specs
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ export class SpecBuilder {
464
464
/**
465
465
* Acks a write with a version and optional additional options.
466
466
*
467
- * expectUserCallback defaults to true if options are omitted.
467
+ * expectUserCallback defaults to true if omitted.
468
468
*/
469
469
writeAcks (
470
470
doc : string ,
@@ -478,7 +478,7 @@ export class SpecBuilder {
478
478
writeAck : { version, keepInQueue : ! ! options . keepInQueue }
479
479
} ;
480
480
481
- if ( options . expectUserCallback ) {
481
+ if ( options . expectUserCallback !== false ) {
482
482
return this . expectUserCallbacks ( { acknowledged : [ doc ] } ) ;
483
483
} else {
484
484
return this ;
@@ -488,7 +488,7 @@ export class SpecBuilder {
488
488
/**
489
489
* Fails a write with an error and optional additional options.
490
490
*
491
- * expectUserCallback defaults to true if options are omitted.
491
+ * expectUserCallback defaults to true if omitted.
492
492
*/
493
493
failWrite (
494
494
doc : string ,
@@ -508,7 +508,7 @@ export class SpecBuilder {
508
508
509
509
this . currentStep = { failWrite : { error, keepInQueue } } ;
510
510
511
- if ( options . expectUserCallback ) {
511
+ if ( options . expectUserCallback !== false ) {
512
512
return this . expectUserCallbacks ( { rejected : [ doc ] } ) ;
513
513
} else {
514
514
return this ;
You can’t perform that action at this time.
0 commit comments