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

Commit 05a1f67

Browse files
author
Kerry Archibald
committed
unstable prefix for new m.tile_server use in test
Signed-off-by: Kerry Archibald <[email protected]>
1 parent dc837df commit 05a1f67

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/components/views/beacon/BeaconMarker-test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
import BeaconMarker from '../../../../src/components/views/beacon/BeaconMarker';
2929
import MatrixClientContext from '../../../../src/contexts/MatrixClientContext';
3030
import { getMockClientWithEventEmitter, makeBeaconEvent, makeBeaconInfoEvent } from '../../../test-utils';
31+
import { TILE_SERVER_WK_KEY } from '../../../../src/utils/WellKnownUtils';
3132

3233
describe('<BeaconMarker />', () => {
3334
// 14.03.2022 16:15
@@ -43,7 +44,7 @@ describe('<BeaconMarker />', () => {
4344

4445
const mockClient = getMockClientWithEventEmitter({
4546
getClientWellKnown: jest.fn().mockReturnValue({
46-
"m.tile_server": { map_style_url: 'maps.com' },
47+
[TILE_SERVER_WK_KEY.name]: { map_style_url: 'maps.com' },
4748
}),
4849
getUserId: jest.fn().mockReturnValue(aliceId),
4950
getRoom: jest.fn(),

test/components/views/beacon/BeaconViewDialog-test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
makeBeaconEvent,
3131
makeBeaconInfoEvent,
3232
} from '../../../test-utils';
33+
import { TILE_SERVER_WK_KEY } from '../../../../src/utils/WellKnownUtils';
3334

3435
describe('<BeaconViewDialog />', () => {
3536
// 14.03.2022 16:15
@@ -44,7 +45,7 @@ describe('<BeaconViewDialog />', () => {
4445

4546
const mockClient = getMockClientWithEventEmitter({
4647
getClientWellKnown: jest.fn().mockReturnValue({
47-
"m.tile_server": { map_style_url: 'maps.com' },
48+
[TILE_SERVER_WK_KEY.name]: { map_style_url: 'maps.com' },
4849
}),
4950
getUserId: jest.fn().mockReturnValue(aliceId),
5051
getRoom: jest.fn(),

0 commit comments

Comments
 (0)