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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3cbc2ea1
Commit
3cbc2ea1
authored
Jul 31, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed karma
parent
9712a6dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
spec/javascripts/ide/components/new_dropdown/modal_spec.js
spec/javascripts/ide/components/new_dropdown/modal_spec.js
+14
-3
No files found.
spec/javascripts/ide/components/new_dropdown/modal_spec.js
View file @
3cbc2ea1
...
...
@@ -64,15 +64,26 @@ describe('new file modal component', () => {
path
:
''
,
entry
:
{
name
:
'
test
'
,
type
:
'
blob
'
,
},
};
vm
=
createComponentWithStore
(
Component
,
store
).
$mount
();
});
it
(
'
renders title and button for renaming
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.modal-title
'
).
textContent
.
trim
()).
toBe
(
'
Rename
'
);
expect
(
vm
.
$el
.
querySelector
(
'
.btn-success
'
).
textContent
.
trim
()).
toBe
(
'
Update
'
);
[
'
tree
'
,
'
blob
'
].
forEach
(
type
=>
{
it
(
`renders title and button for renaming
${
type
}
`
,
done
=>
{
const
text
=
type
===
'
tree
'
?
'
folder
'
:
'
file
'
;
vm
.
$store
.
state
.
entryModal
.
entry
.
type
=
type
;
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.modal-title
'
).
textContent
.
trim
()).
toBe
(
`Rename
${
text
}
`
);
expect
(
vm
.
$el
.
querySelector
(
'
.btn-success
'
).
textContent
.
trim
()).
toBe
(
`Rename
${
text
}
`
);
done
();
});
});
});
describe
(
'
entryName
'
,
()
=>
{
...
...
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