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
d8433217
Unverified
Commit
d8433217
authored
Jul 27, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix repo_sidebar_spec
parent
c477ffbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
repo_sidebar_spec.js
spec/javascripts/repo/repo_sidebar_spec.js
+11
-1
No files found.
spec/javascripts/repo/repo_sidebar_spec.js
View file @
d8433217
...
...
@@ -23,7 +23,7 @@ describe('RepoSidebar', () => {
expect
(
thead
.
querySelector
(
'.last-commit'
).
textContent
).
toEqual
(
'Last Commit'
);
expect
(
thead
.
querySelector
(
'.last-update'
).
textContent
).
toEqual
(
'Last Update'
);
expect
(
tbody
.
querySelector
(
'.repo-file-options'
)).
toBeFalsy
();
expect
(
tbody
.
querySelector
(
'.prev-directory'
)).
toBe
Truth
y
();
expect
(
tbody
.
querySelector
(
'.prev-directory'
)).
toBe
Fals
y
();
expect
(
tbody
.
querySelector
(
'.loading-file'
)).
toBeFalsy
();
expect
(
tbody
.
querySelector
(
'.file'
)).
toBeTruthy
();
});
...
...
@@ -48,4 +48,14 @@ describe('RepoSidebar', () => {
expect
(
vm
.
$el
.
querySelectorAll
(
'tbody .loading-file'
).
length
).
toEqual
(
5
);
});
it
(
'renders a prev directory if isRoot'
,
()
=>
{
RepoStore
.
files
=
[{
id
:
0
,
}];
RepoStore
.
isRoot
=
true
;
const
vm
=
createComponent
();
expect
(
vm
.
$el
.
querySelector
(
'tbody .prev-directory'
)).
toBeTruthy
();
});
});
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