Skip to content

Commit

Permalink
Update tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr authored Nov 5, 2024
1 parent 5c08ec8 commit 642fd75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/01-hello-world/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ it('Add a <strong> tag.', function () {
expect(strong).toBeTruthy();
});

it('The <span> tag should have the expected value.', function () {
it('The <span> tag should have inside "hello, i am a text"', function () {
let span = document.querySelector("span");
expect(span).toBeTruthy();
expect(span.innerHTML.toLowerCase()).toContain("hello, i am a text")
});

it('The <strong> tag should have the expected value.', function () {
it('The <strong> tag should have inside "hello, i am also a text but in bold"', function () {
let strong = document.querySelector("strong");
expect(strong).toBeTruthy();
expect(strong.innerHTML.toLowerCase()).toContain("hello, i am also a text but in bold")
});
});

0 comments on commit 642fd75

Please sign in to comment.