Skip to content

Commit

Permalink
fixup! Implement ExposedThing functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 14, 2024
1 parent 9e47c58 commit dad3192
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/binding_http/http_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,10 @@ void main() {

test("Server tests", () {
final defaultServer = HttpServer(null);
final servient = Servient.create(
servers: [
defaultServer,
],
);

expect(defaultServer.port, 80);
expect(defaultServer.scheme, "http");

expect(
() async => defaultServer.start(servient),
throwsA(const TypeMatcher<UnimplementedError>()),
);
expect(
() async => defaultServer.stop(),
throwsA(const TypeMatcher<UnimplementedError>()),
);
// expect(
// () async => defaultServer.expose(MockExposedThing()),
// throwsA(const TypeMatcher<UnimplementedError>()),
// );

final customServer1 = HttpServer(HttpConfig(secure: true));

expect(customServer1.port, 443);
Expand Down

0 comments on commit dad3192

Please sign in to comment.