mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
fix tests
This commit is contained in:
parent
da4d72b3c4
commit
f3ca4c0b7c
1 changed files with 4 additions and 2 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue