File tree Expand file tree Collapse file tree
packages/devtools_app/test/shared/managers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,20 +99,30 @@ void main() {
9999
100100 test ('clearErrors resets counts and removes errors' , () {
101101 expect (getActiveErrorCount (InspectorScreen .id), equals (0 ));
102- expect (getActiveErrorCount (InspectorScreen .id), equals (0 ));
102+ expect (
103+ errorBadgeManager.errorCountNotifier (InspectorScreen .id).value,
104+ equals (0 ),
105+ );
103106
104107 errorBadgeManager.appendError (
105108 InspectorScreen .id,
106109 DevToolsError ('An error' , InspectorScreen .id),
107110 );
111+ errorBadgeManager.incrementBadgeCount (InspectorScreen .id);
108112
109113 expect (getActiveErrorCount (InspectorScreen .id), equals (1 ));
110- expect (getActiveErrorCount (InspectorScreen .id), equals (1 ));
114+ expect (
115+ errorBadgeManager.errorCountNotifier (InspectorScreen .id).value,
116+ equals (1 ),
117+ );
111118
112119 errorBadgeManager.clearErrors (InspectorScreen .id);
113120
114121 expect (getActiveErrorCount (InspectorScreen .id), equals (0 ));
115- expect (getActiveErrorCount (InspectorScreen .id), equals (0 ));
122+ expect (
123+ errorBadgeManager.errorCountNotifier (InspectorScreen .id).value,
124+ equals (0 ),
125+ );
116126 });
117127 });
118128}
You can’t perform that action at this time.
0 commit comments