@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Observable, asapScheduler, bindCallback, bindNodeCallback} from 'rxjs';
|
||||
import {asapScheduler, bindCallback, bindNodeCallback, Observable} from 'rxjs';
|
||||
|
||||
import {asyncTest} from '../test-util';
|
||||
|
||||
@ -18,7 +18,9 @@ describe('Observable.bindNodeCallback', () => {
|
||||
let boundFunc: any;
|
||||
let observable: any;
|
||||
|
||||
beforeEach(() => { log = []; });
|
||||
beforeEach(() => {
|
||||
log = [];
|
||||
});
|
||||
|
||||
it('bindNodeCallback func callback should run in the correct zone', () => {
|
||||
constructorZone.run(() => {
|
||||
@ -100,7 +102,9 @@ describe('Observable.bindNodeCallback', () => {
|
||||
expect(Zone.current.name).toEqual(subscriptionZone.name);
|
||||
log.push('next' + arg);
|
||||
},
|
||||
(error: any) => { log.push('error' + error); });
|
||||
(error: any) => {
|
||||
log.push('error' + error);
|
||||
});
|
||||
});
|
||||
|
||||
expect(log).toEqual(['nexttest,']);
|
||||
|
Reference in New Issue
Block a user