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
c05e23bc
Commit
c05e23bc
authored
Apr 16, 2020
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine multiple expects into single props expect
parent
ec45178c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/frontend/static_site_editor/components/static_site_editor_spec.js
.../static_site_editor/components/static_site_editor_spec.js
+4
-4
No files found.
spec/frontend/static_site_editor/components/static_site_editor_spec.js
View file @
c05e23bc
...
@@ -96,10 +96,10 @@ describe('StaticSiteEditor', () => {
...
@@ -96,10 +96,10 @@ describe('StaticSiteEditor', () => {
buildWrapper
();
buildWrapper
();
expect
(
findSavedChangesMessage
().
exists
()).
toBe
(
true
);
expect
(
findSavedChangesMessage
().
exists
()).
toBe
(
true
);
expect
(
findSavedChangesMessage
().
props
(
'
returnUrl
'
)).
toBe
(
returnUrl
);
expect
(
findSavedChangesMessage
().
props
(
)).
toEqual
({
expect
(
findSavedChangesMessage
().
props
(
'
commit
'
)).
toBe
(
savedContentMeta
.
commit
);
returnUrl
,
expect
(
findSavedChangesMessage
().
props
(
'
branch
'
)).
toBe
(
savedContentMeta
.
branch
);
...
savedContentMeta
,
expect
(
findSavedChangesMessage
().
props
(
'
mergeRequest
'
)).
toBe
(
savedContentMeta
.
mergeRequest
);
}
);
});
});
describe
(
'
when content is not loaded
'
,
()
=>
{
describe
(
'
when content is not loaded
'
,
()
=>
{
...
...
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