Skip to content

Commit

Permalink
fixup! feat!: implement proper serialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 4, 2024
1 parent c6e461a commit 47b2e6c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/core/definitions/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,25 @@ void main() {
link.toJson(),
);
});

test("AdditionalExpectedResponses", () async {
final additionalExpectedResponseJson = {
"success": true,
"contentType": "application/cbor",
"schema": "foobar",
};

final link = AdditionalExpectedResponse.fromJson(
additionalExpectedResponseJson,
// TODO: Document this parameter
"application/json",
PrefixMapping(),
);

expect(
additionalExpectedResponseJson,
link.toJson(),
);
});
});
}

0 comments on commit 47b2e6c

Please sign in to comment.