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
2fd363cd
Commit
2fd363cd
authored
Apr 01, 2022
by
Diana Zubova
Committed by
Enrique Alcántara
Apr 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review feedback
Replace objectContaining with toMatchObject
parent
c3849c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
spec/frontend/lib/gfm/index_spec.js
spec/frontend/lib/gfm/index_spec.js
+8
-12
No files found.
spec/frontend/lib/gfm/index_spec.js
View file @
2fd363cd
...
...
@@ -12,11 +12,9 @@ describe('gfm', () => {
},
});
expect
(
result
).
toEqual
(
expect
.
objectContaining
({
type
:
'
root
'
,
}),
);
expect
(
result
).
toMatchObject
({
type
:
'
root
'
,
});
});
it
(
'
transforms raw HTML into individual nodes in the AST
'
,
async
()
=>
{
...
...
@@ -29,13 +27,11 @@ describe('gfm', () => {
},
});
expect
(
result
.
children
[
0
].
children
[
0
]).
toEqual
(
expect
.
objectContaining
({
type
:
'
element
'
,
tagName
:
'
strong
'
,
properties
:
{},
}),
);
expect
(
result
.
children
[
0
].
children
[
0
]).
toMatchObject
({
type
:
'
element
'
,
tagName
:
'
strong
'
,
properties
:
{},
});
});
it
(
'
returns the result of executing the renderer function
'
,
async
()
=>
{
...
...
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