Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
remove unused emits from test
Browse files Browse the repository at this point in the history
Signed-off-by: Kerry Archibald <kerrya@element.io>
  • Loading branch information
Kerry Archibald committed Apr 20, 2022
1 parent 3f47dda commit 6ea7545
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/components/views/beacon/BeaconViewDialog-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import React from 'react';
import { mount } from 'enzyme';
import { act } from 'react-dom/test-utils';
import {
BeaconEvent,
MatrixClient,
MatrixEvent,
Room,
Expand Down Expand Up @@ -108,7 +107,6 @@ describe('<BeaconViewDialog />', () => {
const room = setupRoom([defaultEvent]);
const beacon = room.currentState.beacons.get(getBeaconInfoIdentifier(defaultEvent));
beacon.addLocations([location1]);
mockClient.emit(BeaconEvent.New, defaultEvent, beacon);
const component = getComponent();
expect(component.find('DialogOwnBeaconStatus').html()).toBeNull();
});
Expand All @@ -121,7 +119,6 @@ describe('<BeaconViewDialog />', () => {
// mock own beacon store to show default event as alice's live beacon
jest.spyOn(OwnBeaconStore.instance, 'getLiveBeaconIds').mockReturnValue([beacon.identifier]);
jest.spyOn(OwnBeaconStore.instance, 'getBeaconById').mockReturnValue(beacon);
mockClient.emit(BeaconEvent.New, defaultEvent, beacon);
const component = getComponent();
expect(component.find('MemberAvatar').length).toBeTruthy();
expect(component.find('OwnBeaconStatus').props()).toEqual({
Expand Down

0 comments on commit 6ea7545

Please sign in to comment.