Commit 806f0179 authored by peterhegman's avatar peterhegman

Switch from `expect.objectContaining` to `toMatchObject`

Per reviewer feedback
parent 39a9fe28
...@@ -267,15 +267,13 @@ describe('Members Utils', () => { ...@@ -267,15 +267,13 @@ describe('Members Utils', () => {
}); });
it('correctly parses the data attribute', () => { it('correctly parses the data attribute', () => {
expect(parseDataAttributes(el)).toEqual( expect(parseDataAttributes(el)).toMatchObject({
expect.objectContaining({
members, members,
pagination, pagination,
sourceId: 234, sourceId: 234,
canManageMembers: true, canManageMembers: true,
memberPath: '/groups/foo-bar/-/group_members/:id', memberPath: '/groups/foo-bar/-/group_members/:id',
}), });
);
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment