
This commit adds missing unit tests for all rx-library examples from the docs. Closes #28017 PR Close #38905
15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import { docRegionDefault } from './operators';
|
|
|
|
describe('squaredNums - operators.ts', () => {
|
|
it('should return square odds', () => {
|
|
const console = {log: jasmine.createSpy('log')};
|
|
docRegionDefault(console);
|
|
expect(console.log).toHaveBeenCalledTimes(3);
|
|
expect(console.log.calls.allArgs()).toEqual([
|
|
[1],
|
|
[4],
|
|
[9],
|
|
]);
|
|
});
|
|
});
|