Skip to content

Commit 79c8df9

Browse files
committed
Update convert_utils_test.dart
1 parent a4cf172 commit 79c8df9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

test/utils/convert_utils_test.dart

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ Easily manipulate and play around with request inputs like headers, query parame
316316
}
317317
''';
318318

319-
String expected = '{"key":"value"}';
319+
String expected = '''{
320+
"key": "value"
321+
}''';
320322
expect(removeJsonComments(input), expected);
321323
});
322324

@@ -330,13 +332,17 @@ Easily manipulate and play around with request inputs like headers, query parame
330332
}
331333
''';
332334

333-
String expected = '{"key":"value"}';
335+
String expected = '''{
336+
"key": "value"
337+
}''';
334338
expect(removeJsonComments(input), expected);
335339
});
336340

337341
test('Handles valid JSON without comments', () {
338342
String input = '{"key":"value"}';
339-
String expected = '{"key":"value"}';
343+
String expected = '''{
344+
"key": "value"
345+
}''';
340346
expect(removeJsonComments(input), expected);
341347
});
342348

@@ -354,7 +360,10 @@ Easily manipulate and play around with request inputs like headers, query parame
354360
}
355361
''';
356362

357-
String expected = '{"key1":"value1","key2":"value2"}';
363+
String expected = '''{
364+
"key1": "value1",
365+
"key2": "value2"
366+
}''';
358367
expect(removeJsonComments(input), expected);
359368
});
360369

0 commit comments

Comments
 (0)