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
76ac0e46
Commit
76ac0e46
authored
May 10, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove sidebar bundle spec
parent
1e4e0b27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
spec/javascripts/sidebar/sidebar_bundle_spec.js
spec/javascripts/sidebar/sidebar_bundle_spec.js
+0
-42
No files found.
spec/javascripts/sidebar/sidebar_bundle_spec.js
deleted
100644 → 0
View file @
1e4e0b27
import
Vue
from
'
vue
'
;
import
SidebarBundleDomContentLoaded
from
'
~/sidebar/sidebar_bundle
'
;
import
SidebarTimeTracking
from
'
~/sidebar/components/time_tracking/sidebar_time_tracking
'
;
import
SidebarMediator
from
'
~/sidebar/sidebar_mediator
'
;
import
SidebarService
from
'
~/sidebar/services/sidebar_service
'
;
import
SidebarStore
from
'
~/sidebar/stores/sidebar_store
'
;
import
Mock
from
'
./mock_data
'
;
describe
(
'
sidebar bundle
'
,
()
=>
{
gl
.
sidebarOptions
=
Mock
.
mediator
;
beforeEach
(()
=>
{
spyOn
(
SidebarTimeTracking
.
methods
,
'
listenForSlashCommands
'
).
and
.
callFake
(()
=>
{
});
preloadFixtures
(
'
issues/open-issue.html.raw
'
);
Vue
.
http
.
interceptors
.
push
(
Mock
.
sidebarMockInterceptor
);
loadFixtures
(
'
issues/open-issue.html.raw
'
);
spyOn
(
Vue
.
prototype
,
'
$mount
'
);
SidebarBundleDomContentLoaded
();
this
.
mediator
=
new
SidebarMediator
();
});
afterEach
(()
=>
{
SidebarService
.
singleton
=
null
;
SidebarStore
.
singleton
=
null
;
SidebarMediator
.
singleton
=
null
;
});
it
(
'
the mediator should be already defined with some data
'
,
()
=>
{
SidebarBundleDomContentLoaded
();
expect
(
this
.
mediator
.
store
).
toBeDefined
();
expect
(
this
.
mediator
.
service
).
toBeDefined
();
expect
(
this
.
mediator
.
store
.
currentUser
).
toEqual
(
Mock
.
mediator
.
currentUser
);
expect
(
this
.
mediator
.
store
.
rootPath
).
toEqual
(
Mock
.
mediator
.
rootPath
);
expect
(
this
.
mediator
.
store
.
endPoint
).
toEqual
(
Mock
.
mediator
.
endPoint
);
expect
(
this
.
mediator
.
store
.
editable
).
toEqual
(
Mock
.
mediator
.
editable
);
});
it
(
'
the sidebar time tracking and assignees components to have been mounted
'
,
()
=>
{
expect
(
Vue
.
prototype
.
$mount
).
toHaveBeenCalledTimes
(
2
);
});
});
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