Index: test/server_test.dart |
diff --git a/test/server_test.dart b/test/server_test.dart |
index bac8d135c86aec54da011f272582bc84d05b771d..d6f0e1cd83d2619745d7bc0a4360382e77877818 100644 |
--- a/test/server_test.dart |
+++ b/test/server_test.dart |
@@ -61,6 +61,19 @@ main() { |
controller.add(testReq); |
}); |
+ test('default', () { |
+ var controller = new StreamController<HttpRequest>(); |
+ var router = new Router(controller.stream); |
+ var testReq = new HttpRequestMock(new Uri('/bar')); |
+ testReq.response._onClose = expectAsync0(() { |
+ expect(testReq.response.statusCode, 200); |
+ }); |
+ router.defaultStream.listen(expectAsync1((HttpRequest req) { |
+ req.response.statusCode = 200; |
+ req.response.close(); |
+ })); |
+ controller.add(testReq); |
+ }); |
test('filter pass', () { |
var controller = new StreamController<HttpRequest>(); |