Skip to content

Commit

Permalink
[#357] Updated menu test.
Browse files Browse the repository at this point in the history
  • Loading branch information
febdao committed Dec 15, 2024
1 parent d72bc22 commit beddeb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/00-base/menu/__snapshots__/menu.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ exports[`Menu Component renders collapsible menu 1`] = `
<a
aria-expanded="true"
class="ct-link ct-theme-light ct-menu__item__link"
href="/services"
title="Services"
Expand Down
2 changes: 1 addition & 1 deletion components/00-base/menu/menu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('Menu Component', () => {
expect(c.querySelector('.ct-menu__item--level-0 .ct-menu__item__link').textContent.trim()).toEqual('Home');
expect(c.querySelector('.ct-menu__item--level-0 .ct-menu__item__link').getAttribute('href')).toEqual('/');
expect(c.querySelectorAll('.ct-menu__sub-menu')).toHaveLength(1);
expect(c.querySelectorAll('[aria-expanded="true"]')).toHaveLength(3);
expect(c.querySelectorAll('[aria-expanded="true"]')).toHaveLength(2);
expect(c.querySelectorAll('[aria-expanded="false"]')).toHaveLength(0);

assertUniqueCssClasses(c);
Expand Down

0 comments on commit beddeb0

Please sign in to comment.