@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Observable, combineLatest} from 'rxjs';
|
||||
import {combineLatest, Observable} from 'rxjs';
|
||||
|
||||
describe('Observable.combineLatest', () => {
|
||||
let log: any[];
|
||||
@ -21,7 +21,9 @@ describe('Observable.combineLatest', () => {
|
||||
|
||||
let combinedObservable: any;
|
||||
|
||||
beforeEach(() => { log = []; });
|
||||
beforeEach(() => {
|
||||
log = [];
|
||||
});
|
||||
|
||||
it('combineLatest func should run in the correct zone', () => {
|
||||
observable1 = constructorZone1.run(() => new Observable((_subscriber) => {
|
||||
@ -35,7 +37,9 @@ describe('Observable.combineLatest', () => {
|
||||
log.push('setup2');
|
||||
}));
|
||||
|
||||
constructorZone3.run(() => { combinedObservable = combineLatest(observable1, observable2); });
|
||||
constructorZone3.run(() => {
|
||||
combinedObservable = combineLatest(observable1, observable2);
|
||||
});
|
||||
|
||||
subscriptionZone.run(() => {
|
||||
combinedObservable.subscribe((combined: any) => {
|
||||
|
Reference in New Issue
Block a user