Commit 25d267d6 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'remove_var_from_bootstrap_jquery_spec_js' into 'master'

Remove var from bootstrap jquery spec js

Closes #36291

See merge request gitlab-org/gitlab!20089
parents e61ce041 83f02f86
---
title: Remove var from bootstrap_jquery_spec.js
merge_request: 20089
author: Lee Tickett
type: other
/* 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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment