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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1e3a3618
Commit
1e3a3618
authored
Apr 18, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed ide_spec.js
parent
8673a2ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
spec/javascripts/ide/components/ide_spec.js
spec/javascripts/ide/components/ide_spec.js
+7
-2
No files found.
spec/javascripts/ide/components/ide_spec.js
View file @
1e3a3618
...
...
@@ -3,6 +3,7 @@ import store from '~/ide/stores';
import
ide
from
'
~/ide/components/ide.vue
'
;
import
{
createComponentWithStore
}
from
'
spec/helpers/vue_mount_component_helper
'
;
import
{
file
,
resetStore
}
from
'
../helpers
'
;
import
{
projectData
}
from
'
../mock_data
'
;
describe
(
'
ide component
'
,
()
=>
{
let
vm
;
...
...
@@ -10,6 +11,10 @@ describe('ide component', () => {
beforeEach
(()
=>
{
const
Component
=
Vue
.
extend
(
ide
);
store
.
state
.
currentProjectId
=
'
abcproject
'
;
store
.
state
.
currentBranchId
=
'
master
'
;
store
.
state
.
projects
.
abcproject
=
Object
.
assign
({},
projectData
);
vm
=
createComponentWithStore
(
Component
,
store
,
{
emptyStateSvgPath
:
'
svg
'
,
noChangesStateSvgPath
:
'
svg
'
,
...
...
@@ -23,11 +28,11 @@ describe('ide component', () => {
resetStore
(
vm
.
$store
);
});
it
(
'
does not render
panel
right when no files open
'
,
()
=>
{
it
(
'
does not render
right
right when no files open
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.panel-right
'
)).
toBeNull
();
});
it
(
'
renders
panel right
when files are open
'
,
done
=>
{
it
(
'
renders
right panel
when files are open
'
,
done
=>
{
vm
.
$store
.
state
.
trees
[
'
abcproject/mybranch
'
]
=
{
tree
:
[
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