Skip to content

Commit edb1059

Browse files
committed
Test the exported start package.
Previously, tests linked in to the /lib folder, exposing some functions not available to real clients. I would like to re-factor all the test methods associated with Message into the Socket tests so that Message does not need to be exposed.
1 parent 0814b72 commit edb1059

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/start.dart

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import 'src/cookie.dart';
77
import 'src/message.dart';
88
import 'src/socket_base.dart';
99

10+
export 'src/message.dart' show Message;
11+
1012
part 'src/route.dart';
1113
part 'src/request.dart';
1214
part 'src/response.dart';

test/start_server_test.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import 'dart:io' hide Socket;
66
import 'package:unittest/unittest.dart';
77
import 'package:unittest/mock.dart';
88

9-
import '../lib/start.dart';
10-
import '../lib/src/message.dart';
9+
import 'package:start/start.dart';
1110

1211
part 'message_test.dart';
1312
part 'vm_socket_test.dart';

0 commit comments

Comments
 (0)