diff --git a/test/components/views/beacon/BeaconStatus-test.tsx b/test/components/views/beacon/BeaconStatus-test.tsx
index b90cecc5d5..7671e0d267 100644
--- a/test/components/views/beacon/BeaconStatus-test.tsx
+++ b/test/components/views/beacon/BeaconStatus-test.tsx
@@ -51,13 +51,13 @@ describe('', () => {
it('renders without children', () => {
// mock for stable snapshot
jest.spyOn(Date, 'now').mockReturnValue(123456789);
- const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', {}, '$1'));
+ const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', { isLive: false }, '$1'));
const component = getComponent({ beacon, displayStatus: BeaconDisplayStatus.Active });
expect(component).toMatchSnapshot();
});
it('renders with children', () => {
- const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:sever'));
+ const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:sever', { isLive: false }));
const component = getComponent({
beacon,
children: test,
@@ -69,7 +69,7 @@ describe('', () => {
it('renders static remaining time when displayLiveTimeRemaining is falsy', () => {
// mock for stable snapshot
jest.spyOn(Date, 'now').mockReturnValue(123456789);
- const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', {}, '$1'));
+ const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', { isLive: false }, '$1'));
const component = getComponent({ beacon, displayStatus: BeaconDisplayStatus.Active });
expect(component.text().includes('Live until 11:17')).toBeTruthy();
});
@@ -77,7 +77,7 @@ describe('', () => {
it('renders live time remaining when displayLiveTimeRemaining is truthy', () => {
// mock for stable snapshot
jest.spyOn(Date, 'now').mockReturnValue(123456789);
- const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', {}, '$1'));
+ const beacon = new Beacon(makeBeaconInfoEvent('@user:server', '!room:server', { isLive: false }, '$1'));
const component = getComponent({
beacon, displayStatus: BeaconDisplayStatus.Active,
displayLiveTimeRemaining: true,
diff --git a/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap b/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap
index 0f2db924ec..df327f3b49 100644
--- a/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap
+++ b/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap
@@ -9,13 +9,13 @@ exports[` active state renders without children 1`] = `
"_beaconInfo": Object {
"assetType": "m.self",
"description": undefined,
- "live": undefined,
+ "live": false,
"timeout": 3600000,
"timestamp": 123456789,
},
"_events": Object {},
"_eventsCount": 0,
- "_isLive": undefined,
+ "_isLive": false,
"_latestLocationEvent": undefined,
"_maxListeners": undefined,
"clearLatestLocation": [Function],
@@ -24,7 +24,7 @@ exports[` active state renders without children 1`] = `
"rootEvent": Object {
"content": Object {
"description": undefined,
- "live": undefined,
+ "live": false,
"org.matrix.msc3488.asset": Object {
"type": "m.self",
},
@@ -71,13 +71,13 @@ exports[` active state renders without children 1`] = `
"_beaconInfo": Object {
"assetType": "m.self",
"description": undefined,
- "live": undefined,
+ "live": false,
"timeout": 3600000,
"timestamp": 123456789,
},
"_events": Object {},
"_eventsCount": 0,
- "_isLive": undefined,
+ "_isLive": false,
"_latestLocationEvent": undefined,
"_maxListeners": undefined,
"clearLatestLocation": [Function],
@@ -86,7 +86,7 @@ exports[` active state renders without children 1`] = `
"rootEvent": Object {
"content": Object {
"description": undefined,
- "live": undefined,
+ "live": false,
"org.matrix.msc3488.asset": Object {
"type": "m.self",
},