Skip to content

Commit

Permalink
[PR feedback] object assertion vs snapshot
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Kajtoch <tomek@kajto.ch>
  • Loading branch information
cee-chen and tkajtoch authored Aug 4, 2023
1 parent 72c7e0b commit 25b63d8
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ describe('EuiComponentDefaultsProvider', () => {
);
const { result } = renderHook(useComponentDefaults, { wrapper });

expect(result.current).toMatchInlineSnapshot(`
Object {
"EuiPortal": Object {
"insert": Object {
"position": "before",
"sibling": <div />,
},
expect(result.current).toEqual({
EuiPortal: {
insert: {
position: 'before',
sibling: expect.any(HTMLDivElement),
},
}
`);
},
});
});
});

Expand Down

0 comments on commit 25b63d8

Please sign in to comment.