File tree Expand file tree Collapse file tree
src/frontend/src/tests/pages/SettingsPage/UserSettings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import { render , screen } from '../../../test-support/test-utils' ;
77import { exampleUserSettingsLight } from '../../../test-support/test-data/user-settings.stub' ;
88import UserSettingsView from '../../../../pages/SettingsPage/UserSettings/UserSettingsView' ;
9+ import { displayEnum } from '../../../../utils/pipes' ;
910
1011/**
1112 * Sets up the component under test with the desired values and renders it.
@@ -17,6 +18,6 @@ const renderComponent = () => {
1718describe ( 'user settings view component' , ( ) => {
1819 it ( 'renders default theme' , ( ) => {
1920 renderComponent ( ) ;
20- expect ( screen . getByText ( exampleUserSettingsLight . defaultTheme ) ) . toBeInTheDocument ( ) ;
21+ expect ( screen . getByText ( displayEnum ( exampleUserSettingsLight . defaultTheme ) ) ) . toBeInTheDocument ( ) ;
2122 } ) ;
2223} ) ;
You can’t perform that action at this time.
0 commit comments