Skip to content

Commit

Permalink
fix another unit test failure
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 committed Aug 15, 2024
1 parent 46a7483 commit 179c199
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,19 @@ import { Subscription } from 'rxjs';
import { createBrowserHistory, History } from 'history';
import { FilterManager } from '../filter_manager';
import { getFilter } from '../filter_manager/test_helpers/get_stub_filter';
import { Filter, FilterStateStore, IndexPatternsService, UI_SETTINGS } from '../../../common';
import {
DataStorage,
Filter,
FilterStateStore,
IndexPatternsService,
UI_SETTINGS,
} from '../../../common';
import { coreMock } from '../../../../../core/public/mocks';
import {
createOsdUrlStateStorage,
IOsdUrlStateStorage,
Storage,
} from '../../../../opensearch_dashboards_utils/public';
import { QueryService, QueryStart } from '../query_service';
import { StubBrowserStorage } from 'test_utils/stub_browser_storage';
import { TimefilterContract } from '../timefilter';
import { syncQueryStateWithUrl } from './sync_state_with_url';
import { QueryState } from './types';
Expand Down Expand Up @@ -94,12 +98,12 @@ describe('sync_query_state_with_url', () => {
const queryService = new QueryService();
queryService.setup({
uiSettings: setupMock.uiSettings,
storage: new Storage(new StubBrowserStorage()),
storage: new DataStorage(window.localStorage, 'opensearch_dashboards.'),
});
queryServiceStart = queryService.start({
indexPatterns: indexPatternsMock,
uiSettings: startMock.uiSettings,
storage: new Storage(new StubBrowserStorage()),
storage: new DataStorage(window.localStorage, 'opensearch_dashboards.'),
savedObjectsClient: startMock.savedObjects.client,
});
filterManager = queryServiceStart.filterManager;
Expand Down

0 comments on commit 179c199

Please sign in to comment.