Skip to content

Commit 11231ae

Browse files
committed
fix query flow section tests
1 parent e36d2cb commit 11231ae

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/compass-indexes/src/components/create-index-form/query-flow-section.spec.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import { setupStore } from '../../../test/setup-store';
77
import { ActionTypes } from '../../modules/create-index';
88

99
describe('QueryFlowSection', () => {
10-
let store;
10+
const store = setupStore();
1111
const dbName = 'fakeDBName';
1212
const collectionName = 'fakeCollectionName';
1313
const renderComponent = () => {
14-
const store = setupStore();
15-
1614
render(
1715
<Provider store={store}>
1816
<QueryFlowSection
@@ -61,10 +59,10 @@ describe('QueryFlowSection', () => {
6159
});
6260

6361
describe('when index suggestions is fetched', () => {
64-
beforeEach(async () => {
62+
beforeEach(() => {
6563
renderComponent();
6664

67-
await store.dispatch({
65+
store.dispatch({
6866
type: ActionTypes.SuggestedIndexesFetched,
6967
sampleDocs: [],
7068
indexSuggestions: { a: 1, b: 2 },

0 commit comments

Comments
 (0)