-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(snapshot): Use snapshot testing in sdk-common
- Loading branch information
1 parent
f2942db
commit 3b31bbe
Showing
28 changed files
with
383 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_algorithm_info.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: info | ||
--- | ||
{ | ||
"MegolmV1AesSha2": { | ||
"curve25519_key": "curvecurvecurve", | ||
"sender_claimed_keys": { | ||
"ed25519": "claimedclaimeded25519", | ||
"curve25519": "claimedclaimedcurve25519" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...hots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_encryption_info.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: info | ||
--- | ||
{ | ||
"sender": "@alice:localhost", | ||
"sender_device": "ABCDEFGH", | ||
"algorithm_info": { | ||
"MegolmV1AesSha2": { | ||
"curve25519_key": "curvecurvecurve", | ||
"sender_claimed_keys": {} | ||
} | ||
}, | ||
"verification_state": "Verified" | ||
} |
5 changes: 5 additions & 0 deletions
5
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"UnknownDevice" |
5 changes: 5 additions & 0 deletions
5
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"UnsignedDevice" |
5 changes: 5 additions & 0 deletions
5
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes-4.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"UnverifiedIdentity" |
5 changes: 5 additions & 0 deletions
5
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes-5.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"SentInClear" |
5 changes: 5 additions & 0 deletions
5
...shots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes-6.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"VerificationViolation" |
5 changes: 5 additions & 0 deletions
5
...apshots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_codes.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&code).unwrap()" | ||
--- | ||
"AuthenticityNotGuaranteed" |
10 changes: 10 additions & 0 deletions
10
...hots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_states-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&state).unwrap()" | ||
--- | ||
{ | ||
"Red": { | ||
"code": "UnverifiedIdentity", | ||
"message": "a message" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...hots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_states-3.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&state).unwrap()" | ||
--- | ||
{ | ||
"Grey": { | ||
"code": "AuthenticityNotGuaranteed", | ||
"message": "authenticity of this message cannot be guaranteed" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...pshots/matrix_sdk_common__deserialized_responses__tests__snapshot_test_shield_states.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
source: crates/matrix-sdk-common/src/deserialized_responses.rs | ||
expression: "serde_json::to_value(&state).unwrap()" | ||
--- | ||
"None" |
Oops, something went wrong.