Testea el siguiente código JavaScript
Dificultad: Básico
//index.js
export const saludo = (nombre) => {
return `Hola ${nombre}`;
};
//operaciones.test.js
test('Debe regresar Hola Juan', () => {
const respuesta = saludo("juan");
expect(respuesta).toBe("Hola Juan");
})
A. ❌ FAIL tests, Debe regresar Hola Juan
, Expected: "Hola Juan", Received: "Hola juan"
B. ✅ PASS tests, Debe regresar Hola Juan
Respuesta en el primer comentario.