mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
import { docRegionSubscriber } from './creating';
|
|
|
|
describe('observables', () => {
|
|
it('should create an observable using the constructor', () => {
|
|
const consoleSpy = jasmine.createSpyObj<Console>('console', ['log']);
|
|
docRegionSubscriber(consoleSpy);
|
|
expect(consoleSpy.log).toHaveBeenCalledTimes(4);
|
|
expect(consoleSpy.log.calls.allArgs()).toEqual([
|
|
[1],
|
|
[2],
|
|
[3],
|
|
['Finished sequence'],
|
|
]);
|
|
});
|
|
});
|