Skip to content

Commit

Permalink
fixup! feat!: improve deserialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 2, 2024
1 parent 7e669e7 commit 9580c76
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/core/servient_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,21 @@ void main() {
() {
final servient = InternalServient();

final exposedThingInit = <String, dynamic>{
final exposedThingInit1 = <String, dynamic>{
"securityDefinitions": 42,
};

expect(
() async => await servient.produce(exposedThingInit),
() async => await servient.produce(exposedThingInit1),
throwsA(isA<FormatException>()),
);

final exposedThingInit2 = <String, dynamic>{
"security": 42,
};

expect(
() async => await servient.produce(exposedThingInit2),
throwsA(isA<FormatException>()),
);
},
Expand Down

0 comments on commit 9580c76

Please sign in to comment.