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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3ce6960b
Commit
3ce6960b
authored
Nov 02, 2017
by
Luke "Jared" Bennett
Committed by
Clement Ho
Nov 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless closeReopenReport specs
parent
10a5f97f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+0
-34
No files found.
spec/javascripts/issue_spec.js
View file @
3ce6960b
/* eslint-disable space-before-function-paren, one-var, one-var-declaration-per-line, no-use-before-define, comma-dangle, max-len */
import
Issue
from
'
~/issue
'
;
import
CloseReopenReportToggle
from
'
~/close_reopen_report_toggle
'
;
import
'
~/lib/utils/text_utility
'
;
describe
(
'
Issue
'
,
function
()
{
...
...
@@ -189,37 +188,4 @@ describe('Issue', function() {
});
});
});
describe
(
'
units
'
,
()
=>
{
describe
(
'
class constructor
'
,
()
=>
{
it
(
'
calls .initCloseReopenReport
'
,
()
=>
{
spyOn
(
Issue
.
prototype
,
'
initCloseReopenReport
'
);
new
Issue
();
// eslint-disable-line no-new
expect
(
Issue
.
prototype
.
initCloseReopenReport
).
toHaveBeenCalled
();
});
});
describe
(
'
initCloseReopenReport
'
,
()
=>
{
it
(
'
calls .initDroplab
'
,
()
=>
{
const
container
=
jasmine
.
createSpyObj
(
'
container
'
,
[
'
querySelector
'
]);
const
dropdownTrigger
=
{};
const
dropdownList
=
{};
const
button
=
{};
spyOn
(
document
,
'
querySelector
'
).
and
.
returnValue
(
container
);
spyOn
(
CloseReopenReportToggle
.
prototype
,
'
initDroplab
'
);
container
.
querySelector
.
and
.
returnValues
(
dropdownTrigger
,
dropdownList
,
button
);
Issue
.
prototype
.
initCloseReopenReport
();
expect
(
document
.
querySelector
).
toHaveBeenCalledWith
(
'
.js-issuable-close-dropdown
'
);
expect
(
container
.
querySelector
).
toHaveBeenCalledWith
(
'
.js-issuable-close-toggle
'
);
expect
(
container
.
querySelector
).
toHaveBeenCalledWith
(
'
.js-issuable-close-menu
'
);
expect
(
container
.
querySelector
).
toHaveBeenCalledWith
(
'
.js-issuable-close-button
'
);
expect
(
CloseReopenReportToggle
.
prototype
.
initDroplab
).
toHaveBeenCalled
();
});
});
});
});
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