Fixed test

This commit is contained in:
thosakwe 2017-01-27 22:48:55 -05:00
parent 7d424436c7
commit ddae8d9cf1

View file

@ -39,7 +39,7 @@ main() {
test('can serve files, with correct Content-Type', () async {
var response = await client.get("$url/sample.txt");
expect(response.body, equals("Hello world"));
expect(response.headers[HttpHeaders.CONTENT_TYPE], equals("text/plain"));
expect(response.headers[HttpHeaders.CONTENT_TYPE], contains("text/plain"));
});
test('non-existent files are skipped', () async {