element-web-Github/test/stores/widgets/__snapshots__/StopGapWidgetDriver-test.ts.snap

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.6 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`StopGapWidgetDriver sendToDevice sends encrypted messages 1`] = `
2022-11-04 18:48:08 +08:00
[
[
[
{
"deviceInfo": DeviceInfo {
2022-11-04 18:48:08 +08:00
"algorithms": [],
"deviceId": "aliceWeb",
2022-11-04 18:48:08 +08:00
"keys": {},
"known": false,
2022-11-04 18:48:08 +08:00
"signatures": {},
"unsigned": {},
"verified": 0,
},
"userId": "@alice:example.org",
},
2022-11-04 18:48:08 +08:00
{
"deviceInfo": DeviceInfo {
2022-11-04 18:48:08 +08:00
"algorithms": [],
"deviceId": "aliceMobile",
2022-11-04 18:48:08 +08:00
"keys": {},
"known": false,
2022-11-04 18:48:08 +08:00
"signatures": {},
"unsigned": {},
"verified": 0,
},
"userId": "@alice:example.org",
},
],
2022-11-04 18:48:08 +08:00
{
"hello": "alice",
},
],
2022-11-04 18:48:08 +08:00
[
[
{
"deviceInfo": DeviceInfo {
2022-11-04 18:48:08 +08:00
"algorithms": [],
"deviceId": "bobDesktop",
2022-11-04 18:48:08 +08:00
"keys": {},
"known": false,
2022-11-04 18:48:08 +08:00
"signatures": {},
"unsigned": {},
"verified": 0,
},
"userId": "@bob:example.org",
},
],
2022-11-04 18:48:08 +08:00
{
"hello": "bob",
},
],
]
`;
exports[`StopGapWidgetDriver sendToDevice sends unencrypted messages 1`] = `
2022-11-04 18:48:08 +08:00
[
[
{
"batch": [
{
"deviceId": "*",
2022-11-04 18:48:08 +08:00
"payload": {
"hello": "alice",
},
"userId": "@alice:example.org",
},
2022-11-04 18:48:08 +08:00
{
"deviceId": "bobDesktop",
2022-11-04 18:48:08 +08:00
"payload": {
"hello": "bob",
},
"userId": "@bob:example.org",
},
],
"eventType": "org.example.foo",
},
],
]
`;