BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
62e3b28c
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
repo_tab_spec.js
spec/javascripts/repo/components/repo_tab_spec.js
+1
-1
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', () => {
...
@@ -65,7 +65,7 @@ describe('RepoTab', () => {
expect
(
vm
.
$el
.
querySelector
(
'.close .fa-circle'
)).
toBeTruthy
();
expect
(
vm
.
$el
.
querySelector
(
'.close .fa-circle'
)).
toBeTruthy
();
});
});
f
describe
(
'methods'
,
()
=>
{
describe
(
'methods'
,
()
=>
{
describe
(
'xClicked'
,
()
=>
{
describe
(
'xClicked'
,
()
=>
{
const
vm
=
jasmine
.
createSpyObj
(
'vm'
,
[
'$emit'
]);
const
vm
=
jasmine
.
createSpyObj
(
'vm'
,
[
'$emit'
]);
...
...
spec/javascripts/repo/components/repo_tabs_spec.js
View file @
62e3b28c
...
@@ -47,4 +47,18 @@ describe('RepoTabs', () => {
...
@@ -47,4 +47,18 @@ describe('RepoTabs', () => {
expect
(
vm
.
$el
.
classList
.
contains
(
'overflown'
)).
toBeFalsy
();
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