Skip to content

Commit

Permalink
add more concrete assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Nov 3, 2020
1 parent 63120f9 commit 924eabc
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,20 @@ search.addWidgets([
createRenderOptions({ helper })
);

const hits = [];
// @ts-ignore-next-line
hits.__escaped = true;

expect(renderState).toEqual({
currentRefinement: 'query',
indices: expect.any(Array),
indices: [
expect.objectContaining({
results: expect.objectContaining({
hits,
}),
sendEvent: expect.any(Function),
}),
],
refine: expect.any(Function),
widgetParams: {},
});
Expand Down

0 comments on commit 924eabc

Please sign in to comment.