From 1fefbeb834b5391572aa0350ce198bade34e062e Mon Sep 17 00:00:00 2001 From: EzeSandes Date: Mon, 6 Mar 2023 19:14:57 -0300 Subject: [PATCH] fix: algorithms-6/encontrar-la-media. Test de media corregido La media entre 20 y 21 == 20.5 y no a 21 --- algorithms-6/encontrar-la-media/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms-6/encontrar-la-media/index.test.ts b/algorithms-6/encontrar-la-media/index.test.ts index 6cca4cb..16d569e 100644 --- a/algorithms-6/encontrar-la-media/index.test.ts +++ b/algorithms-6/encontrar-la-media/index.test.ts @@ -29,7 +29,7 @@ describe("encontrarLaMedia", () => { expect(encontrarLaMedia(actual)).toMatchObject(expected); }); - it("debería encontrar la media correctamente - 21", () => { + it("debería encontrar la media correctamente - 20.5", () => { const actual: Developer[] = [ { firstName: "Noa", @@ -48,7 +48,7 @@ describe("encontrarLaMedia", () => { language: "C", }, ]; - const expected = 21; + const expected = 20.5; expect(encontrarLaMedia(actual)).toMatchObject(expected); });