Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
806f0179
Commit
806f0179
authored
May 11, 2021
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from `expect.objectContaining` to `toMatchObject`
Per reviewer feedback
parent
39a9fe28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
spec/frontend/members/utils_spec.js
spec/frontend/members/utils_spec.js
+7
-9
No files found.
spec/frontend/members/utils_spec.js
View file @
806f0179
...
...
@@ -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
'
,
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment