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', () => {
});
it('correctly parses the data attribute', () => {
expect(parseDataAttributes(el)).toEqual(
expect.objectContaining({
members,
pagination,
sourceId: 234,
canManageMembers: true,
memberPath: '/groups/foo-bar/-/group_members/:id',
}),
);
expect(parseDataAttributes(el)).toMatchObject({
members,
pagination,
sourceId: 234,
canManageMembers: true,
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