Skip to content

Commit 321c648

Browse files
committed
made last test more flexible to accept any font-awesome class
1 parent 0ed3617 commit 321c648

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/11-Font-Awesome-Icons/tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ describe("All the styles should be applied", ()=>{
2626
expect(li[i].innerHTML).toBeTruthy();
2727
}
2828
});
29-
test('the i tag should have a class "fas"', ()=>{
29+
test('the i tag(s) should have Font Awesome class(es) starting with "fa" | ex. "fa-solid"', ()=>{
3030
//or use query selector to compare hoy mane scriptags do we have
3131
expect(icons).toBeTruthy();
3232

3333
icons.forEach(icon=>{
34-
let hasFas = icon.classList.contains("fas")
35-
expect(hasFas).toBe(true);
34+
let hasFa = icon.classList.contains("fa-")
35+
expect(hasFa).toBeTruthy();
3636
})
3737
});
3838
});

0 commit comments

Comments
 (0)