webapp
Форк от omaltsev/webapp
1import { sum, division } from "../utils/utils";2
3it('sums numbers', () => {4expect(sum(1, 2)).toEqual(3);5expect(sum(2, 2)).toEqual(4);6});7
8it('sums zeros',()=>{9expect(sum(0,0)).toEqual(0);10})11
12it('divide numbers', () => {13expect(division(2, 2)).toEqual(0);14expect(division(6, 2)).toEqual(4);15});16
17it('should return the same value', () => {18expect(sum(1, 2)).toEqual(sum(1, 2));19});20