fix tests

This commit is contained in:
Sorunome 2020-05-22 11:13:58 +02:00
parent 74361fff0e
commit ee9090b7a7
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 6 additions and 1 deletions

View File

@ -62,8 +62,13 @@ void main() {
'@alice:example.com': rawListJson,
};
expect(json.encode(DeviceKeys.fromJson(rawJson, null).toJson()),
final key = DeviceKeys.fromJson(rawJson, null);
rawJson.remove('verified');
rawJson.remove('blocked');
expect(json.encode(key.toJson()),
json.encode(rawJson));
expect(key.verified, false);
expect(key.blocked, true);
expect(json.encode(DeviceKeysList.fromJson(rawListJson, null).toJson()),
json.encode(rawListJson));