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