Fix tests v2

This commit is contained in:
Michael Telatynski 2019-12-17 18:02:45 +00:00
parent f3ca4c0b7c
commit 513ec30ef1

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>,