fix flaky test (#125256)

This commit is contained in:
Joe Reuter 2022-02-10 21:38:55 +01:00 committed by GitHub
parent 2c7d96bd92
commit 31328ff51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ describe('Initializing the store', () => {
it('starts new searchSessionId', async () => {
const { store } = await makeLensStore({ preloadedState });
await act(async () => {
await store.dispatch(loadInitial(defaultProps));
await store.dispatch(loadInitial({ ...defaultProps, initialInput: undefined }));
});
expect(store.getState()).toEqual({
lens: expect.objectContaining({