From bddbfe60da869ce05730045e23268ea738e3f676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Mon, 2 Sep 2024 19:08:51 +0700 Subject: [PATCH] add "Sink failed" test --- test/utils/add_null_test.dart | 5 +++++ 1 file changed, 5 insertions(+) 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())); + }); }