Skip to content

Commit

Permalink
fixup! feat!: improve TD serialization behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 3, 2024
1 parent d60bdc9 commit 972400e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/core/content_serdes_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void main() {

final testContent1 = _getTestContent("42");
final successfulSchema = DataSchema.fromJson(
<String, dynamic>{"type": "number"},
const <String, dynamic>{"type": "number"},
PrefixMapping(),
);

Expand All @@ -34,7 +34,7 @@ void main() {

final testContent2 = _getTestContent("42");
final failingSchema = DataSchema.fromJson(
<String, dynamic>{"type": "string"},
const <String, dynamic>{"type": "string"},
PrefixMapping(),
);

Expand Down Expand Up @@ -147,7 +147,7 @@ void main() {
() => contentSerdes.valueToContent(
null,
// FIXME(JKRhb): Should not be necessary to use fromJson here
DataSchema.fromJson({"type": "object"}, PrefixMapping()),
DataSchema.fromJson(const {"type": "object"}, PrefixMapping()),
),
throwsA(isA<ContentSerdesException>()),
);
Expand Down

0 comments on commit 972400e

Please sign in to comment.