From 53205b4218ed2c6933b3f17b025b75902b156fa5 Mon Sep 17 00:00:00 2001 From: Elena Note Date: Wed, 20 Jan 2021 12:50:30 -0300 Subject: [PATCH] Corrige errores de test y enunciados en la homework 03-JS-II --- 03-JS-II/homework/homework.js | 2 +- 03-JS-II/homework/tests/JSII.test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/03-JS-II/homework/homework.js b/03-JS-II/homework/homework.js index 501242e7b6..e31b0e271c 100755 --- a/03-JS-II/homework/homework.js +++ b/03-JS-II/homework/homework.js @@ -94,7 +94,7 @@ function esVerdadero(valor){ } function tablaDelSeis(){ - //Escribe una función que muestre la tabla de multiplicar del 6 (del 6 al 60). + //Escribe una función que muestre la tabla de multiplicar del 6 (del 0 al 60). //La función devuelve un array con los resultados de la tabla de multiplicar del 6 en orden creciente. //Escribe tu código aquí diff --git a/03-JS-II/homework/tests/JSII.test.js b/03-JS-II/homework/tests/JSII.test.js index 9a1f3adcde..f21ff1a74d 100755 --- a/03-JS-II/homework/tests/JSII.test.js +++ b/03-JS-II/homework/tests/JSII.test.js @@ -168,11 +168,11 @@ describe('esPrimo(num)', function() { }); describe ('esVerdadero(valor)', function() { - it('should return true if valor is true', function() { - expect(esVerdadero(true)).toBe(true); + it('should return Soy verdadero if valor is true', function() { + expect(esVerdadero(true)).toBe("Soy verdadero"); }); - it('should return false if valor is false', function() { - expect(esVerdadero(false)).toBe(false); + it('should return Soy falso if valor is false', function() { + expect(esVerdadero(false)).toBe("Soy falso"); }); });