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
606275da
Commit
606275da
authored
Apr 12, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs
parent
04eaed80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
spec/javascripts/droplab/constants_spec.js
spec/javascripts/droplab/constants_spec.js
+6
-0
spec/javascripts/droplab/drop_down_spec.js
spec/javascripts/droplab/drop_down_spec.js
+2
-2
No files found.
spec/javascripts/droplab/constants_spec.js
View file @
606275da
...
...
@@ -26,4 +26,10 @@ describe('constants', function () {
expect
(
constants
.
ACTIVE_CLASS
).
toBe
(
'
droplab-item-active
'
);
});
});
describe
(
'
TEMPLATE_REGEX
'
,
function
()
{
it
(
'
should be a handlebars templating syntax regex
'
,
function
()
{
expect
(
constants
.
TEMPLATE_REGEX
).
toEqual
(
/
\{\{(
.+
?)\}\}
/g
);
});
});
});
spec/javascripts/droplab/drop_down_spec.js
View file @
606275da
...
...
@@ -429,7 +429,7 @@ describe('DropDown', function () {
this
.
html
=
'
html
'
;
this
.
template
=
{
firstChild
:
{
outerHTML
:
'
outerHTML
'
,
style
:
{}
}
};
spyOn
(
utils
,
'
t
'
).
and
.
returnValue
(
this
.
html
);
spyOn
(
utils
,
'
t
emplate
'
).
and
.
returnValue
(
this
.
html
);
spyOn
(
document
,
'
createElement
'
).
and
.
returnValue
(
this
.
template
);
spyOn
(
this
.
dropdown
,
'
setImagesSrc
'
);
...
...
@@ -437,7 +437,7 @@ describe('DropDown', function () {
});
it
(
'
should call utils.t with .templateString and data
'
,
function
()
{
expect
(
utils
.
t
).
toHaveBeenCalledWith
(
this
.
templateString
,
this
.
data
);
expect
(
utils
.
t
emplate
).
toHaveBeenCalledWith
(
this
.
templateString
,
this
.
data
);
});
it
(
'
should call document.createElement
'
,
function
()
{
...
...
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