Testing
Testing
connectTo
main() {
TestClient client;
setUp(() async {
client = await connectTo(myApp);
});
// Shut down server, and cancel pending requests
tearDown(() => client.close());
test('hello', () async {
// The server URL is automatically prepended to paths.
// This returns an http.Response. :)
var response = await client.get('/hello');
});
}isJson
hasStatus
More Matchers
Next Up...
Last updated