Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(renderState): add tests for getWidgetRenderState at connectAutocomplete #4561

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

eunjae-lee
Copy link
Contributor

@eunjae-lee eunjae-lee commented Nov 3, 2020

Summary

This PR adds the missing tests for getWidgetRenderState at connectAutocomplete.

DX-1356

@eunjae-lee eunjae-lee requested a review from a team November 3, 2020 10:10
@ghost ghost requested review from shortcuts and yannickcr and removed request for a team November 3, 2020 10:10
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 3, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 924eabc:

Sandbox Source
InstantSearch.js Configuration


expect(renderState).toEqual({
currentRefinement: 'query',
indices: expect.any(Array),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should assert what's actually in this indices array. In your case it's probably an empty array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

924eabc what do you think?

@eunjae-lee eunjae-lee requested a review from Haroenv November 3, 2020 15:14
@eunjae-lee eunjae-lee merged commit 95b7d12 into feat/render-state Nov 3, 2020
@eunjae-lee eunjae-lee deleted the test/autocomplete-widget-render-state branch November 3, 2020 15:16
Haroenv pushed a commit that referenced this pull request Nov 30, 2020
…omplete (#4561)

* test(renderState): add tests for getWidgetRenderState at connectAutocomplete

* add more concrete assertion
Haroenv pushed a commit that referenced this pull request Nov 30, 2020
…omplete (#4561)

* test(renderState): add tests for getWidgetRenderState at connectAutocomplete

* add more concrete assertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants