Skip to content

Commit d39c61b

Browse files
committed
frontend: Fix themeSlice test
Signed-off-by: Oleksandr Dubenko <[email protected]>
1 parent a163961 commit d39c61b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

frontend/src/components/App/themeSlice.test.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
import React from 'react';
22
import { AppLogoProps, AppLogoType } from './AppLogo';
3-
import themeReducer, { setBrandingAppLogoComponent, setTheme, ThemeState } from './themeSlice';
3+
import themeReducer, { initialState, setBrandingAppLogoComponent, setTheme } from './themeSlice';
44

55
describe('themeSlice', () => {
6-
const initialState: ThemeState = {
7-
logo: null,
8-
name: '',
9-
appThemes: [],
10-
};
11-
126
it('should handle initial state', () => {
13-
expect(themeReducer(undefined, { type: 'unknown' })).toEqual({
14-
logo: null,
15-
name: '',
16-
});
7+
expect(themeReducer(undefined, { type: 'unknown' })).toEqual(initialState);
178
});
189

1910
it('should handle setBrandingAppLogoComponent', () => {

0 commit comments

Comments
 (0)