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.
1 parent 6bb7da0 commit e58f67cCopy full SHA for e58f67c
src/app/app.test.tsx
@@ -18,9 +18,9 @@ describe('App tests', () => {
18
it('should hide the sidebar when clicking the nav-toggle button', () => {
19
const wrapper = mount(<App />);
20
const button = wrapper.find('#nav-toggle').hostNodes();
21
- expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeTruthy();
22
- button.simulate('click');
23
expect(wrapper.find('#page-sidebar').hasClass('pf-m-collapsed')).toBeTruthy();
24
- expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeFalsy();
+ button.simulate('click');
+ expect(wrapper.find('#page-sidebar').hasClass('pf-m-expanded')).toBeTruthy();
+ expect(wrapper.find('#page-sidebar').hasClass('pf-m-collapsed')).toBeFalsy();
25
});
26
0 commit comments