mirror of
https://github.com/foss42/apidash.git
synced 2025-07-03 06:27:26 +08:00
Update map_extensions_test.dart
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import 'package:better_networking/extensions/extensions.dart';
|
||||
import 'package:better_networking/better_networking.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
@ -112,18 +112,16 @@ void main() {
|
||||
|
||||
group("Testing ?.getValueContentType() function", () {
|
||||
test('Testing ?.getValueContentType() for header1', () {
|
||||
Map<String, String> header1 = {
|
||||
"content-type": "application/json",
|
||||
};
|
||||
Map<String, String> header1 = {"content-type": "application/json"};
|
||||
String contentType1Expected = "application/json";
|
||||
expect(header1.getValueContentType(), contentType1Expected);
|
||||
});
|
||||
test('Testing ?.getValueContentType() when header keys are in header case',
|
||||
test(
|
||||
'Testing ?.getValueContentType() when header keys are in header case',
|
||||
() {
|
||||
Map<String, String> header2 = {
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
Map<String, String> header2 = {"Content-Type": "application/json"};
|
||||
expect(header2.getValueContentType(), "application/json");
|
||||
});
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user