Skip to content

Commit

Permalink
add "Sink<void> failed" test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Sep 2, 2024
1 parent ec7be62 commit bddbfe6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/utils/add_null_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ void main() {

verify(c.add(null)).called(1);
});

test('Sink<void> failed', () {
final StreamController<void> c = StreamController<int>();
expect(() => c.addNull(), throwsA(isA<TypeError>()));
});
}

0 comments on commit bddbfe6

Please sign in to comment.