mirror of
https://github.com/foss42/apidash.git
synced 2025-07-04 07:18:11 +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';
|
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");
|
},
|
||||||
});
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user