refactor(tests): replace 'final' with 'const' for improved performance in various test files

This commit is contained in:
mso7nueh
2025-12-08 11:32:40 +03:00
parent c2a506cdbf
commit 746d366c18
56 changed files with 199 additions and 254 deletions

View File

@@ -165,19 +165,19 @@ void main() {
});
test('primaryColorScheme has primary color', () {
final colorScheme = ColorSchemes.primaryColorScheme;
const colorScheme = ColorSchemes.primaryColorScheme;
expect(colorScheme.primary, isA<Color>());
});
test('primaryColorScheme has onPrimary color', () {
final colorScheme = ColorSchemes.primaryColorScheme;
const colorScheme = ColorSchemes.primaryColorScheme;
expect(colorScheme.onPrimary, isA<Color>());
});
test('primaryColorScheme has onPrimaryContainer color', () {
final colorScheme = ColorSchemes.primaryColorScheme;
const colorScheme = ColorSchemes.primaryColorScheme;
expect(colorScheme.onPrimaryContainer, isA<Color>());
});