Skip to content

Commit 88aedb6

Browse files
committed
Fix test
1 parent 48590d4 commit 88aedb6

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

packages/devtools_app/test/shared/managers/error_badge_manager_test.dart

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)