Skip to content

Commit e6f905c

Browse files
committed
Test: encode using indention to make debugging errors easier
1 parent 1bd6b3d commit e6f905c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/json_serializable_integration_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void _roundTripObject(object, factory(Map<String, dynamic> json)) {
168168

169169
String _loudEncode(object) {
170170
try {
171-
return JSON.encode(object.toJson());
171+
return const JsonEncoder.withIndent(' ').convert(object.toJson());
172172
} on JsonUnsupportedObjectError catch (e) {
173173
var error = e;
174174
do {

0 commit comments

Comments
 (0)