Update overly sensitive snapshot (#9421)

* Update snapshot

* Fix tests by adding missing stub
pull/28788/head^2
Michael Telatynski 2022-10-14 15:57:12 +01:00 committed by GitHub
parent cb5667b4a4
commit cf1b592f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 21 deletions

View File

@ -106,20 +106,18 @@ exports[`<BeaconMarker /> renders marker when beacon has location 1`] = `
"_eventsCount": 0, "_eventsCount": 0,
"_isOutOfBand": false, "_isOutOfBand": false,
"_maxListeners": undefined, "_maxListeners": undefined,
"_modified": 1647270879403,
"_requestedProfileInfo": undefined,
"disambiguate": false, "disambiguate": false,
"events": Object { "events": Object {},
"member": null, "membership": undefined,
}, "modified": 1647270879403,
"membership": null,
"name": "@alice:server", "name": "@alice:server",
"powerLevel": 0, "powerLevel": 0,
"powerLevelNorm": 0, "powerLevelNorm": 0,
"rawDisplayName": "@alice:server", "rawDisplayName": "@alice:server",
"requestedProfileInfo": false,
"roomId": "!room:server", "roomId": "!room:server",
"typing": false, "typing": false,
"user": null, "user": undefined,
"userId": "@alice:server", "userId": "@alice:server",
Symbol(kCapture): false, Symbol(kCapture): false,
} }
@ -135,20 +133,18 @@ exports[`<BeaconMarker /> renders marker when beacon has location 1`] = `
"_eventsCount": 0, "_eventsCount": 0,
"_isOutOfBand": false, "_isOutOfBand": false,
"_maxListeners": undefined, "_maxListeners": undefined,
"_modified": 1647270879403,
"_requestedProfileInfo": undefined,
"disambiguate": false, "disambiguate": false,
"events": Object { "events": Object {},
"member": null, "membership": undefined,
}, "modified": 1647270879403,
"membership": null,
"name": "@alice:server", "name": "@alice:server",
"powerLevel": 0, "powerLevel": 0,
"powerLevelNorm": 0, "powerLevelNorm": 0,
"rawDisplayName": "@alice:server", "rawDisplayName": "@alice:server",
"requestedProfileInfo": false,
"roomId": "!room:server", "roomId": "!room:server",
"typing": false, "typing": false,
"user": null, "user": undefined,
"userId": "@alice:server", "userId": "@alice:server",
Symbol(kCapture): false, Symbol(kCapture): false,
} }
@ -172,20 +168,18 @@ exports[`<BeaconMarker /> renders marker when beacon has location 1`] = `
"_eventsCount": 0, "_eventsCount": 0,
"_isOutOfBand": false, "_isOutOfBand": false,
"_maxListeners": undefined, "_maxListeners": undefined,
"_modified": 1647270879403,
"_requestedProfileInfo": undefined,
"disambiguate": false, "disambiguate": false,
"events": Object { "events": Object {},
"member": null, "membership": undefined,
}, "modified": 1647270879403,
"membership": null,
"name": "@alice:server", "name": "@alice:server",
"powerLevel": 0, "powerLevel": 0,
"powerLevelNorm": 0, "powerLevelNorm": 0,
"rawDisplayName": "@alice:server", "rawDisplayName": "@alice:server",
"requestedProfileInfo": false,
"roomId": "!room:server", "roomId": "!room:server",
"typing": false, "typing": false,
"user": null, "user": undefined,
"userId": "@alice:server", "userId": "@alice:server",
Symbol(kCapture): false, Symbol(kCapture): false,
} }

View File

@ -184,6 +184,7 @@ export function createTestClient(): MatrixClient {
setAudioInput: jest.fn(), setAudioInput: jest.fn(),
} as unknown as MediaHandler), } as unknown as MediaHandler),
uploadContent: jest.fn(), uploadContent: jest.fn(),
getEventMapper: () => (opts) => new MatrixEvent(opts),
} as unknown as MatrixClient; } as unknown as MatrixClient;
client.reEmitter = new ReEmitter(client); client.reEmitter = new ReEmitter(client);