Skip to content

Commit 08b2150

Browse files
committed
fix: update display settings tests
- Updated JSON keys to snake_case - Adjusted accent theme values
1 parent 6e8f0c5 commit 08b2150

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/src/models/user_settings/display_settings_test.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ void main() {
66
// Helper function to create a sample JSON map
77
Map<String, dynamic> createJson({
88
String baseTheme = 'system',
9-
String accentTheme = 'defaultBlue',
9+
String accentTheme = 'default_blue',
1010
String fontFamily = 'SystemDefault',
1111
String textScaleFactor = 'medium',
1212
String fontWeight = 'regular',
1313
}) {
1414
return {
15-
'baseTheme': baseTheme,
16-
'accentTheme': accentTheme,
17-
'fontFamily': fontFamily,
18-
'textScaleFactor': textScaleFactor,
19-
'fontWeight': fontWeight,
15+
'base_theme': baseTheme,
16+
'accent_theme': accentTheme,
17+
'font_family': fontFamily,
18+
'text_scale_factor': textScaleFactor,
19+
'font_weight': fontWeight,
2020
};
2121
}
2222

@@ -102,7 +102,7 @@ void main() {
102102
test('handles different enum values', () {
103103
final json = createJson(
104104
baseTheme: 'light',
105-
accentTheme: 'graphiteGray',
105+
accentTheme: 'graphite_gray',
106106
fontFamily: 'Merriweather',
107107
textScaleFactor: 'small',
108108
fontWeight: 'light',

0 commit comments

Comments
 (0)