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
62e3b28c
Commit
62e3b28c
authored
Aug 07, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover repo_tabs xClicked method
parent
126d4775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
spec/javascripts/repo/components/repo_tab_spec.js
spec/javascripts/repo/components/repo_tab_spec.js
+1
-1
spec/javascripts/repo/components/repo_tabs_spec.js
spec/javascripts/repo/components/repo_tabs_spec.js
+14
-0
No files found.
spec/javascripts/repo/components/repo_tab_spec.js
View file @
62e3b28c
...
...
@@ -65,7 +65,7 @@ describe('RepoTab', () => {
expect
(
vm
.
$el
.
querySelector
(
'
.close .fa-circle
'
)).
toBeTruthy
();
});
f
describe
(
'
methods
'
,
()
=>
{
describe
(
'
methods
'
,
()
=>
{
describe
(
'
xClicked
'
,
()
=>
{
const
vm
=
jasmine
.
createSpyObj
(
'
vm
'
,
[
'
$emit
'
]);
...
...
spec/javascripts/repo/components/repo_tabs_spec.js
View file @
62e3b28c
...
...
@@ -47,4 +47,18 @@ describe('RepoTabs', () => {
expect
(
vm
.
$el
.
classList
.
contains
(
'
overflown
'
)).
toBeFalsy
();
});
fdescribe
(
'
methods
'
,
()
=>
{
describe
(
'
xClicked
'
,
()
=>
{
it
(
'
calls removeFromOpenedFiles with file obj
'
,
()
=>
{
const
file
=
{};
spyOn
(
RepoStore
,
'
removeFromOpenedFiles
'
);
repoTabs
.
methods
.
xClicked
(
file
);
expect
(
RepoStore
.
removeFromOpenedFiles
).
toHaveBeenCalledWith
(
file
);
});
});
});
});
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