More <String, String> patches in tests
This commit is contained in:
parent
999d92ce95
commit
2a8c563686
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue