Skip to content

Commit e6fd556

Browse files
committed
test fixes
1 parent 3fbbbb3 commit e6fd556

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

json_serializable/test/kitchen_sink/kitchen_sink_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ const _nonNullableFields = {
294294
'strictKeysObject'
295295
};
296296

297-
const _encodedAsMapKeys = {'simpleObject', 'strictKeysObject'};
297+
const _encodedAsMapKeys = {
298+
'simpleObject',
299+
'strictKeysObject',
300+
'recordField',
301+
};
298302

299303
const _iterableMapKeys = {
300304
'bigIntMap',

json_serializable/test/kitchen_sink/kitchen_sink_test_shared.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ const invalidValueTypes = {
8282
'value': 10,
8383
'invalid_key': true,
8484
},
85-
'validatedPropertyNo42': true
85+
'validatedPropertyNo42': true,
86+
'recordField': {
87+
'\$1': 1,
88+
'\$2': 'other string',
89+
'truth': false,
90+
},
8691
};
8792

8893
const disallowNullKeys = {

0 commit comments

Comments
 (0)