Skip to content

Commit

Permalink
Ensure we're selecting only ToC sub-items.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro committed Feb 9, 2024
1 parent a69f5ff commit fdf16a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/IFrameNavigatorTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ describe("IFrameNavigator", () => {
expect(link4.href).to.equal("http://example.com/item-2.html");
expect(link4.text).to.equal("Item 2");

const sublinks = link1.parentElement.querySelectorAll("ul > li > a");
const sublinks = link1.parentElement.querySelectorAll("li > ul > li > a");
expect(sublinks.length).to.equal(2);

expect(sublinks[0]).to.equal(link2);
Expand Down

0 comments on commit fdf16a4

Please sign in to comment.