Clean up some unit test logs (#7857)
* kill some unit test logs in arrays-test Signed-off-by: Kerry Archibald <kerrya@element.io> * remove mock logs that are asserted against anyway * remove more logs Signed-off-by: Kerry Archibald <kerrya@element.io> * fix safeCOunterpartTranslate warnings in tests Signed-off-by: Kerry Archibald <kerrya@element.io> * more safeCounterpartTranslate warnings Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * remove more logs Signed-off-by: Kerry Archibald <kerrya@element.io> * add helper Signed-off-by: Kerry Archibald <kerrya@element.io> * naming Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
e2827b4082
commit
8b9263c808
13 changed files with 108 additions and 91 deletions
|
@ -28,6 +28,7 @@ import SettingsStore from "../../../src/settings/SettingsStore";
|
|||
import MatrixClientContext from "../../../src/contexts/MatrixClientContext";
|
||||
import RoomContext from "../../../src/contexts/RoomContext";
|
||||
import DMRoomMap from "../../../src/utils/DMRoomMap";
|
||||
import { upsertRoomStateEvents } from '../../utils/test-utils';
|
||||
|
||||
const TestUtils = require('react-dom/test-utils');
|
||||
const expect = require('expect');
|
||||
|
@ -199,6 +200,7 @@ describe('MessagePanel', function() {
|
|||
mkEvent({
|
||||
event: true,
|
||||
type: "m.room.create",
|
||||
sender: '@test:example.org',
|
||||
room: roomId,
|
||||
user: alice,
|
||||
content: {
|
||||
|
@ -435,6 +437,7 @@ describe('MessagePanel', function() {
|
|||
|
||||
it('should collapse creation events', function() {
|
||||
const events = mkCreationEvents();
|
||||
upsertRoomStateEvents(room, events);
|
||||
const res = mount(
|
||||
<WrappedMessagePanel className="cls" events={events} />,
|
||||
);
|
||||
|
@ -460,6 +463,7 @@ describe('MessagePanel', function() {
|
|||
|
||||
it('should hide read-marker at the end of creation event summary', function() {
|
||||
const events = mkCreationEvents();
|
||||
upsertRoomStateEvents(room, events);
|
||||
const res = mount(
|
||||
<WrappedMessagePanel
|
||||
className="cls"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue