fix success redirect test

This commit is contained in:
Tobe O 2018-12-31 11:50:03 -05:00
parent 68bf356572
commit c78dc37e34

View file

@ -85,7 +85,7 @@ main() async {
var response = await client.post("$url/login",
body: json.encode(postData),
headers: {'content-type': 'application/json'});
expect(response.statusCode, equals(200));
expect(response.statusCode, equals(302));
expect(response.headers['location'], equals('/success'));
});