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
83f02f86
Commit
83f02f86
authored
Nov 15, 2019
by
Lee Tickett
Committed by
Phil Hughes
Nov 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove var from bootstrap jquery spec js
parent
e61ce041
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
changelogs/unreleased/remove_var_from_bootstrap_jquery_spec_js.yml
...s/unreleased/remove_var_from_bootstrap_jquery_spec_js.yml
+5
-0
spec/javascripts/bootstrap_jquery_spec.js
spec/javascripts/bootstrap_jquery_spec.js
+4
-10
No files found.
changelogs/unreleased/remove_var_from_bootstrap_jquery_spec_js.yml
0 → 100644
View file @
83f02f86
---
title
:
Remove var from bootstrap_jquery_spec.js
merge_request
:
20089
author
:
Lee Tickett
type
:
other
spec/javascripts/bootstrap_jquery_spec.js
View file @
83f02f86
/* eslint-disable no-var */
import
$
from
'
jquery
'
;
import
'
~/commons/bootstrap
'
;
...
...
@@ -10,15 +8,13 @@ describe('Bootstrap jQuery extensions', function() {
});
it
(
'
adds the disabled attribute
'
,
function
()
{
var
$input
;
$input
=
$
(
'
input
'
).
first
();
const
$input
=
$
(
'
input
'
).
first
();
$input
.
disable
();
expect
(
$input
).
toHaveAttr
(
'
disabled
'
,
'
disabled
'
);
});
return
it
(
'
adds the disabled class
'
,
function
()
{
var
$input
;
$input
=
$
(
'
input
'
).
first
();
const
$input
=
$
(
'
input
'
).
first
();
$input
.
disable
();
expect
(
$input
).
toHaveClass
(
'
disabled
'
);
...
...
@@ -30,15 +26,13 @@ describe('Bootstrap jQuery extensions', function() {
});
it
(
'
removes the disabled attribute
'
,
function
()
{
var
$input
;
$input
=
$
(
'
input
'
).
first
();
const
$input
=
$
(
'
input
'
).
first
();
$input
.
enable
();
expect
(
$input
).
not
.
toHaveAttr
(
'
disabled
'
);
});
return
it
(
'
removes the disabled class
'
,
function
()
{
var
$input
;
$input
=
$
(
'
input
'
).
first
();
const
$input
=
$
(
'
input
'
).
first
();
$input
.
enable
();
expect
(
$input
).
not
.
toHaveClass
(
'
disabled
'
);
...
...
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