mirror of
https://github.com/foss42/apidash.git
synced 2025-07-03 14:36:22 +08:00
Update convert_utils_test.dart
This commit is contained in:
@ -316,7 +316,9 @@ Easily manipulate and play around with request inputs like headers, query parame
|
||||
}
|
||||
''';
|
||||
|
||||
String expected = '{"key":"value"}';
|
||||
String expected = '''{
|
||||
"key": "value"
|
||||
}''';
|
||||
expect(removeJsonComments(input), expected);
|
||||
});
|
||||
|
||||
@ -330,13 +332,17 @@ Easily manipulate and play around with request inputs like headers, query parame
|
||||
}
|
||||
''';
|
||||
|
||||
String expected = '{"key":"value"}';
|
||||
String expected = '''{
|
||||
"key": "value"
|
||||
}''';
|
||||
expect(removeJsonComments(input), expected);
|
||||
});
|
||||
|
||||
test('Handles valid JSON without comments', () {
|
||||
String input = '{"key":"value"}';
|
||||
String expected = '{"key":"value"}';
|
||||
String expected = '''{
|
||||
"key": "value"
|
||||
}''';
|
||||
expect(removeJsonComments(input), expected);
|
||||
});
|
||||
|
||||
@ -354,7 +360,10 @@ Easily manipulate and play around with request inputs like headers, query parame
|
||||
}
|
||||
''';
|
||||
|
||||
String expected = '{"key1":"value1","key2":"value2"}';
|
||||
String expected = '''{
|
||||
"key1": "value1",
|
||||
"key2": "value2"
|
||||
}''';
|
||||
expect(removeJsonComments(input), expected);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user