Skip to content

Commit

Permalink
Update JSI.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yael1982 authored and atralice committed Jun 25, 2021
1 parent 7a05c22 commit 80d24f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 02-JS-I/homework/tests/JSI.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,15 @@ describe('deEuroAdolar(euro)', function() {
});

describe('esVocal(letra)', function() {
it('Deberia devolver el strings "Dato incorrecto", si el valor ingresado tiene más de una letra', function() {
it('Deberia devolver el string "Dato incorrecto", si el valor ingresado tiene más de una letra', function() {
expect(esVocal("la")).toBe("Dato incorrecto");
expect(esVocal("pero")).toBe("Dato incorrecto");
});
it('Deberia devolver el strings "Es vocal", si el valor ingresado lo es', function() {
it('Deberia devolver el string "Dato incorrecto", si el valor ingresado no es vocal', function() {
expect(esVocal("l")).toBe("Dato incorrecto");
expect(esVocal("p")).toBe("Dato incorrecto");
});
it('Deberia devolver el string "Es vocal", si el valor ingresado lo es', function() {
expect(esVocal('a')).toBe('Es vocal');
expect(esVocal('e')).toBe('Es vocal');
expect(esVocal('i')).toBe('Es vocal');
Expand Down

0 comments on commit 80d24f6

Please sign in to comment.