Update map_extensions_test.dart

This commit is contained in:
Ankit Mahato
2025-06-29 06:12:44 +05:30
parent 421f1eb4e2
commit 5e0bd3a43f

View File

@ -1,4 +1,4 @@
import 'package:better_networking/extensions/extensions.dart'; import 'package:better_networking/better_networking.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {
@ -112,18 +112,16 @@ void main() {
group("Testing ?.getValueContentType() function", () { group("Testing ?.getValueContentType() function", () {
test('Testing ?.getValueContentType() for header1', () { test('Testing ?.getValueContentType() for header1', () {
Map<String, String> header1 = { Map<String, String> header1 = {"content-type": "application/json"};
"content-type": "application/json",
};
String contentType1Expected = "application/json"; String contentType1Expected = "application/json";
expect(header1.getValueContentType(), contentType1Expected); 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");
expect(header2.getValueContentType(), "application/json"); },
}); );
}); });
} }