Skip to content

Commit e58f67c

Browse files
authored
fix(tests): inverse order of class because nav is by default collapsed (#87)
Co-authored-by: Andy Ladjadj <[email protected]>
1 parent 6bb7da0 commit e58f67c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/app.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ describe('App tests', () => {
1818
it('should hide the sidebar when clicking the nav-toggle button', () => {
1919
const wrapper = mount(<App />);
2020
const button = wrapper.find('#nav-toggle').hostNodes();
21-
expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeTruthy();
22-
button.simulate('click');
2321
expect(wrapper.find('#page-sidebar').hasClass('pf-m-collapsed')).toBeTruthy();
24-
expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeFalsy();
22+
button.simulate('click');
23+
expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeTruthy();
24+
expect(wrapper.find('#page-sidebar').hasClass('pf-m-collapsed')).toBeFalsy();
2525
});
2626
});

0 commit comments

Comments
 (0)