More <String, String> patches in tests

This commit is contained in:
Tobe O 2018-07-09 10:54:50 -04:00
parent 999d92ce95
commit 2a8c563686
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import 'package:test/test.dart';
import 'common.dart';
main() {
Map headers = {
Map headers = <String, String>{
'Accept': 'application/json',
'Content-Type': 'application/json'
};

View file

@ -154,7 +154,7 @@ main() {
});
test('Can serialize function result as JSON', () async {
Map headers = {'Content-Type': 'application/json'};
Map headers = <String, String>{'Content-Type': 'application/json'};
String postData = json.encode({'it': 'works'});
var response = await client.post("$url/lambda",
headers: headers as Map<String, String>, body: postData);