We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8068a3e + f350b6c commit 6b460c9Copy full SHA for 6b460c9
exercises/11-Font-Awesome-Icons/tests.js
@@ -26,13 +26,13 @@ describe("All the styles should be applied", ()=>{
26
expect(li[i].innerHTML).toBeTruthy();
27
}
28
});
29
- test('the i tag should have a class "fas"', ()=>{
+ test('the i tag(s) should have Font Awesome class(es) starting with "fa" | ex. "fa-solid"', ()=>{
30
//or use query selector to compare hoy mane scriptags do we have
31
expect(icons).toBeTruthy();
32
33
icons.forEach(icon=>{
34
- let hasFas = icon.classList.contains("fas")
35
- expect(hasFas).toBe(true);
+ let hasFa = icon.classList.toString().includes("fa-")
+ expect(hasFa).toBeTruthy();
36
})
37
38
0 commit comments