Skip to content

Commit 3421a21

Browse files
committed
fix tests
1 parent 796a33a commit 3421a21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/storage/dashboards.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('dashboards', () => {
9797

9898
it('should update an existing dashboard', () => {
9999
const existingDashboards = { default: defaultDashboard };
100-
const updatedDashboard: DashboardLayout = { widgets: [], generalSettings: { fontSize: 'lg' }};
100+
const updatedDashboard: DashboardLayout = { widgets: [], generalSettings: { fontSize: 'lg', colorPalette: 'black' }};
101101
mockReadData.mockReturnValue(existingDashboards);
102102

103103
saveDashboard('default', updatedDashboard);
@@ -247,7 +247,7 @@ describe('dashboards', () => {
247247

248248
const updatedDashboard = getOrCreateDefaultDashboard();
249249

250-
expect(updatedDashboard.generalSettings).toEqual({ fontSize: 'sm' });
250+
expect(updatedDashboard.generalSettings).toEqual({ fontSize: 'sm', colorPalette: 'default' });
251251
});
252252

253253
it('should preserve general settings from the existing dashboard', () => {
@@ -258,7 +258,7 @@ describe('dashboards', () => {
258258

259259
const updatedDashboard = getOrCreateDefaultDashboard();
260260

261-
expect(updatedDashboard.generalSettings).toEqual({ fontSize: 'lg' });
261+
expect(updatedDashboard.generalSettings).toEqual({ fontSize: 'lg', colorPalette: 'default' });
262262
});
263263
});
264264
});

0 commit comments

Comments
 (0)