Skip to content

Commit

Permalink
Couple more failing tests
Browse files Browse the repository at this point in the history
We have multiple `Layouts` now with the new subnavs
  • Loading branch information
scottybollinger committed Nov 23, 2020
1 parent 4bd6418 commit f34bedd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('WorkplaceSearchConfigured', () => {
it('renders layout and header actions', () => {
const wrapper = shallow(<WorkplaceSearchConfigured />);

expect(wrapper.find(Layout).prop('readOnlyMode')).toBeFalsy();
expect(wrapper.find(Layout).first().prop('readOnlyMode')).toBeFalsy();
expect(wrapper.find(Overview)).toHaveLength(1);
expect(mockKibanaValues.renderHeaderActions).toHaveBeenCalledWith(WorkplaceSearchHeaderActions);
});
Expand Down Expand Up @@ -90,6 +90,6 @@ describe('WorkplaceSearchConfigured', () => {

const wrapper = shallow(<WorkplaceSearchConfigured />);

expect(wrapper.find(Layout).prop('readOnlyMode')).toEqual(true);
expect(wrapper.find(Layout).first().prop('readOnlyMode')).toEqual(true);
});
});

0 comments on commit f34bedd

Please sign in to comment.