fix success redirect test
This commit is contained in:
parent
68bf356572
commit
c78dc37e34
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ main() async {
|
||||||
var response = await client.post("$url/login",
|
var response = await client.post("$url/login",
|
||||||
body: json.encode(postData),
|
body: json.encode(postData),
|
||||||
headers: {'content-type': 'application/json'});
|
headers: {'content-type': 'application/json'});
|
||||||
expect(response.statusCode, equals(200));
|
expect(response.statusCode, equals(302));
|
||||||
expect(response.headers['location'], equals('/success'));
|
expect(response.headers['location'], equals('/success'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue