forked from eatvio/eatvio_app
refactor(tests): replace 'final' with 'const' for improved performance in various test files
This commit is contained in:
@@ -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>());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user