You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.saveFirstError(newError(`Do not return ${asyncType} from tests declared via \`test.cb(…)\`. Use \`test.cb(…)\` for legacy callback APIs. When using promises, observables or async functions, use \`test(…)\`.`));
601
-
returnthis.finishPromised();
601
+
returnthis.finish();
602
602
}
603
603
604
604
if(this.calledEnd){
605
-
returnthis.finishPromised();
605
+
returnthis.finish();
606
606
}
607
607
608
608
returnnewPromise(resolve=>{
609
609
this.endCallbackFinisher=()=>{
610
-
resolve(this.finishPromised());
610
+
resolve(this.finish());
611
611
};
612
612
613
613
this.finishDueToAttributedError=()=>{
614
-
resolve(this.finishPromised());
614
+
resolve(this.finish());
615
615
};
616
616
617
617
this.finishDueToTimeout=()=>{
618
-
resolve(this.finishPromised());
618
+
resolve(this.finish());
619
619
};
620
620
621
621
this.finishDueToInactivity=()=>{
622
622
this.saveFirstError(newError('`t.end()` was never called'));
623
-
resolve(this.finishPromised());
623
+
resolve(this.finish());
624
624
};
625
625
});
626
626
}
627
627
628
628
if(promise){
629
629
returnnewPromise(resolve=>{
630
630
this.finishDueToAttributedError=()=>{
631
-
resolve(this.finishPromised());
631
+
resolve(this.finish());
632
632
};
633
633
634
634
this.finishDueToTimeout=()=>{
635
-
resolve(this.finishPromised());
635
+
resolve(this.finish());
636
636
};
637
637
638
638
this.finishDueToInactivity=()=>{
639
639
consterror=returnedObservable ?
640
640
newError('Observable returned by test never completed') :
641
641
newError('Promise returned by test never resolved');
0 commit comments