fix tests

pull/21833/head
Michael Telatynski 2019-12-17 17:54:19 +00:00
parent da4d72b3c4
commit f3ca4c0b7c
1 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,8 @@ describe('MemberEventListSummary', function() {
const renderer = new ShallowRenderer();
renderer.render(<MemberEventListSummary {...props} />);
const result = renderer.getRenderOutput();
const wrapper = renderer.getRenderOutput(); // matrix cli context wrapper
const result = wrapper.props.children[0];
expect(result.props.children).toEqual([
<div className="event_tile" key="event0">Expanded membership</div>,
@ -137,7 +138,8 @@ describe('MemberEventListSummary', function() {
const renderer = new ShallowRenderer();
renderer.render(<MemberEventListSummary {...props} />);
const result = renderer.getRenderOutput();
const wrapper = renderer.getRenderOutput(); // matrix cli context wrapper
const result = wrapper.props.children[0];
expect(result.props.children).toEqual([
<div className="event_tile" key="event0">Expanded membership</div>,