Skip to content

Commit 27e9753

Browse files
committed
chore: some cleanup
1 parent 15fc603 commit 27e9753

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

packages/stream_feeds/test/test_utils/testers/base_tester.dart

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -61,52 +61,6 @@ abstract base class BaseTester<S> with ApiMockerMixin {
6161
Future<void> pump([Duration duration = Duration.zero]) {
6262
return Future<Object?>.delayed(duration);
6363
}
64-
65-
/// Asserts that [actual] matches [matcher].
66-
///
67-
/// The [actual] parameter is a function that receives the subject
68-
/// and returns a value to assert.
69-
///
70-
/// Example:
71-
/// ```dart
72-
/// tester.expect((subject) => subject.state.someField, expectedValue);
73-
/// ```
74-
@Deprecated('Use regular expect instead')
75-
void expect(
76-
Object? Function(S subject) actual,
77-
Object? matcher, {
78-
String? reason,
79-
}) {
80-
return test.expect(
81-
actual(subject),
82-
test.wrapMatcher(matcher),
83-
reason: reason,
84-
);
85-
}
86-
87-
/// Asserts that [actual] matches [matcher] asynchronously.
88-
///
89-
/// The [actual] parameter is a function that receives the subject
90-
/// and returns a value to assert.
91-
///
92-
/// Example:
93-
/// ```dart
94-
/// await tester.expectLater(
95-
/// (subject) => subject.stream,
96-
/// emits(expectedValue),
97-
/// );
98-
/// ```
99-
Future<void> expectLater(
100-
Object? Function(S subject) actual,
101-
Object? matcher, {
102-
String? reason,
103-
}) {
104-
return test.expectLater(
105-
actual(subject),
106-
test.wrapMatcher(matcher),
107-
reason: reason,
108-
);
109-
}
11064
}
11165

11266
/// Creates a tester instance with WebSocket support.

0 commit comments

Comments
 (0)