Runners Home - грешка
Здравейте, опитвам се да реша задачата от упражненията в петък Runners Home. Ето кода ми: http://pastebin.com/UYqLCAPE, а грешките са в тест 5 и 6.
Тест 5: let sup = $("h1").find('sup');
expect(sup).to.have.lengthOf(1,"Incorrect amount of sup tag."); и връща "Unexpected error: Incorrect amount of sup tag.: expected { Object (length, prevObject) } to have a length of 1 but got 0"
Тест 6: let h2 = $("div#wrapper > h2");
expect(h2).to.have.lengthOf(1,"Incorrect amount of h2 tag.");
expect($("h2").find('sup')).to.have.lengthOf(1,"Incorrect amount of sup tag."); и връща Unexpected error: Incorrect amount of sup tag.: expected { Object (length, prevObject) } to have a length of 1 but got 0