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
c3afc61f
Unverified
Commit
c3afc61f
authored
Aug 04, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix repo_file_buttons_spec
parent
9afd372e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
repo_file_buttons_spec.js
spec/javascripts/repo/components/repo_file_buttons_spec.js
+7
-3
No files found.
spec/javascripts/repo/components/repo_file_buttons_spec.js
View file @
c3afc61f
...
...
@@ -13,6 +13,10 @@ describe('RepoFileButtons', () => {
const
activeFile
=
{
extension
:
'md'
,
url
:
'url'
,
raw_path
:
'raw_path'
,
blame_path
:
'blame_path'
,
commits_path
:
'commits_path'
,
permalink
:
'permalink'
,
};
const
activeFileLabel
=
'activeFileLabel'
;
RepoStore
.
openedFiles
=
new
Array
(
1
);
...
...
@@ -27,11 +31,11 @@ describe('RepoFileButtons', () => {
expect
(
vm
.
$el
.
id
).
toEqual
(
'repo-file-buttons'
);
expect
(
vm
.
$el
.
style
.
borderBottom
).
toEqual
(
'1px solid rgb(31, 120, 209)'
);
expect
(
raw
.
href
).
toMatch
(
`/
${
activeFile
.
url
}
`
);
expect
(
raw
.
href
).
toMatch
(
`/
${
activeFile
.
raw_path
}
`
);
expect
(
raw
.
textContent
).
toEqual
(
'Raw'
);
expect
(
blame
.
href
).
toMatch
(
`/
${
activeFile
.
url
}
`
);
expect
(
blame
.
href
).
toMatch
(
`/
${
activeFile
.
blame_path
}
`
);
expect
(
blame
.
textContent
).
toEqual
(
'Blame'
);
expect
(
history
.
href
).
toMatch
(
`/
${
activeFile
.
url
}
`
);
expect
(
history
.
href
).
toMatch
(
`/
${
activeFile
.
commits_path
}
`
);
expect
(
history
.
textContent
).
toEqual
(
'History'
);
expect
(
vm
.
$el
.
querySelector
(
'.permalink'
).
textContent
).
toEqual
(
'Permalink'
);
expect
(
vm
.
$el
.
querySelector
(
'.preview'
).
textContent
).
toEqual
(
activeFileLabel
);
...
...
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