Fix tests v2

pull/21833/head
Michael Telatynski 2019-12-17 18:02:45 +00:00
parent f3ca4c0b7c
commit 513ec30ef1
1 changed files with 2 additions and 2 deletions

View File

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