mirror of https://github.com/vector-im/riot-web
Fix tests v2
parent
f3ca4c0b7c
commit
513ec30ef1
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue