Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Jan 15, 2025
1 parent 5eb5b19 commit b117b08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
12 changes: 3 additions & 9 deletions test/browser/components/effects/effect-manager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ const EffectTypeSelector = appInjector.get(EffectTypeSelectorFactory);

const mockStore = configureStore();
const initialState = {
demo: {
keplerGl: {
map: {
visState: {
effects: StateWEffects.visState.effects,
effectOrder: StateWEffects.visState.effectOrder
}
}
}
visState: {
effects: StateWEffects.visState.effects,
effectOrder: StateWEffects.visState.effectOrder
},
mapState: {latitude: 0, longitude: 0}
};
Expand Down
24 changes: 3 additions & 21 deletions test/browser/components/map/map-control-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@ test('MapControlFactory - display all options', t => {

test('MapControlFactory - display options', t => {
const store = mockStore({
demo: {
keplerGl: {
map: {
uiState: StateWSplitMaps.uiState
}
}
}
uiState: StateWSplitMaps.uiState
});

let wrapper;
Expand Down Expand Up @@ -183,13 +177,7 @@ test('MapControlFactory - click options', t => {
);

const store = mockStore({
demo: {
keplerGl: {
map: {
uiState: StateWSplitMaps.uiState
}
}
}
uiState: StateWSplitMaps.uiState
});

let wrapper;
Expand Down Expand Up @@ -264,13 +252,7 @@ test('MapControlFactory - show panels', t => {
let mapContainerProps = mapFieldsSelector(mockKeplerPropsWithState({state: updateState}));

const store = mockStore({
demo: {
keplerGl: {
map: {
uiState: updateState.uiState
}
}
}
uiState: updateState.uiState
});

let wrapper;
Expand Down
2 changes: 1 addition & 1 deletion test/browser/components/plot-container-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import configureStore from 'redux-mock-store';

const PlotContainer = appInjector.get(PlotContainerFactory);
const initialProps = plotContainerSelector(mockKeplerProps);
const initialState = {mapState: {latitude: 0, longitude: 0}};
const initialState = {mapState: {latitude: 0, longitude: 0}, uiState: mockKeplerProps.uiState};
const mockStore = configureStore();

test('PlotContainer -> mount', t => {
Expand Down

0 comments on commit b117b08

Please sign in to comment.