2020-09-28 17:56:59 +03:00
|
|
|
import { docRegionDefault } from './operators';
|
|
|
|
|
|
|
|
describe('squaredNums - operators.ts', () => {
|
|
|
|
it('should return square odds', () => {
|
2021-05-08 16:02:03 +02:00
|
|
|
const consoleSpy = jasmine.createSpyObj<Console>('console', ['log']);
|
|
|
|
docRegionDefault(consoleSpy);
|
|
|
|
expect(consoleSpy.log).toHaveBeenCalledTimes(3);
|
|
|
|
expect(consoleSpy.log.calls.allArgs()).toEqual([
|
2020-09-28 17:56:59 +03:00
|
|
|
[1],
|
|
|
|
[4],
|
|
|
|
[9],
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
});
|