fix(sum): ajuste erro no ultimo teste

This commit is contained in:
Caroline Moran 2022-10-27 15:21:02 -04:00
parent 8baf158b6a
commit 8380b20c4a

View File

@ -30,7 +30,7 @@ describe("sum", () => {
});
it("Dever retornar 3886 quando passamos o array [9, 234, 312, 999, 21 , 2311]", () => {
expect(sum([9, 234, 312, 999, 21 , 2311])).toBe(3886);
expect(sum([9, 234, 312, 999, 21, 2311])).toBe(3886);
});
it("Dever retornar 73098 quando passamos o array [533, 234, 23423, 32, 48876]", () => {
@ -44,6 +44,6 @@ describe("sum", () => {
});
it("Dever retornar -40 quando passamos o array [-2, -7, -31]", () => {
expect(sum([-2, -7, -31])).toBe(-51);
})
expect(sum([-2, -7, -31])).toBe(-40);
});
});