build: reformat repo to new clang@1.4.0 (#36628)

PR Close #36628
This commit is contained in:
Joey Perrott
2020-04-13 17:43:52 -07:00
committed by atscott
parent 4b3f9ac739
commit 26f49151e7
1163 changed files with 31727 additions and 24036 deletions

View File

@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Observable, interval} from 'rxjs';
import {interval, Observable} from 'rxjs';
import {asyncTest} from '../test-util';
@ -13,12 +13,16 @@ describe('Observable.interval', () => {
let log: any[];
let observable1: Observable<any>;
beforeEach(() => { log = []; });
beforeEach(() => {
log = [];
});
it('interval func callback should run in the correct zone', asyncTest((done: any) => {
const constructorZone1: Zone = Zone.current.fork({name: 'Constructor Zone1'});
const subscriptionZone: Zone = Zone.current.fork({name: 'Subscription Zone'});
observable1 = constructorZone1.run(() => { return interval(10); });
observable1 = constructorZone1.run(() => {
return interval(10);
});
subscriptionZone.run(() => {
const subscriber = observable1.subscribe(
@ -31,7 +35,10 @@ describe('Observable.interval', () => {
done();
}
},
() => { fail('should not call error'); }, () => {});
() => {
fail('should not call error');
},
() => {});
});
}, Zone.root));
});