Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kabir-Ivan committed Jun 27, 2024
1 parent cf4ef09 commit 6b3eeb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/lib/static/components/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import _ from 'lodash';
import configureStore from 'redux-mock-store';
import {Provider} from 'react-redux';
import defaultState from 'lib/static/modules/default-state';
import { ThemeProvider } from '@gravity-ui/uikit';

exports.mkState = ({initialState} = {}) => {
return _.defaultsDeep(initialState, defaultState);
Expand All @@ -17,7 +18,7 @@ exports.mkStore = ({initialState, state} = {}) => {

exports.mkConnectedComponent = (Component, state) => {
const store = exports.mkStore(state);
return mount(<Provider store={store}>{Component}</Provider>);
return mount(<ThemeProvider theme='light'><Provider store={store}>{Component}</Provider></ThemeProvider>);
};

exports.mkImg_ = (opts = {}) => {
Expand Down

0 comments on commit 6b3eeb4

Please sign in to comment.