diff --git a/test/utils/add_null_test.dart b/test/utils/add_null_test.dart index d20b8ef..f3d5fc3 100644 --- a/test/utils/add_null_test.dart +++ b/test/utils/add_null_test.dart @@ -19,4 +19,9 @@ void main() { verify(c.add(null)).called(1); }); + + test('Sink failed', () { + final StreamController c = StreamController(); + expect(() => c.addNull(), throwsA(isA())); + }); }