diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-20 17:39:15 -0700 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-04-29 10:22:41 +0200 |
| commit | 5d37cc703b2d3f100ca5c2c73fd456739cd80dd9 (patch) | |
| tree | 6e70b9947bee40969547578b4d07dd18517ca506 /js_tests/admin/SelectFilter2.test.js | |
| parent | 0dafadadb924e09ffd43287604cb4c2c6e353891 (diff) | |
Fixed #31493 -- Replaced var with const and let keywords in JavaScript.
The eslint configuration and the admin script compress.py have been
updated for ES6.
The unused fallback of globals.django in jquery.init.js was removed. It
is always included before jsi18n-mocks.test.js and it always sets the
global value.
Diffstat (limited to 'js_tests/admin/SelectFilter2.test.js')
| -rw-r--r-- | js_tests/admin/SelectFilter2.test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js_tests/admin/SelectFilter2.test.js b/js_tests/admin/SelectFilter2.test.js index fd0f309a04..3f85e70fe9 100644 --- a/js_tests/admin/SelectFilter2.test.js +++ b/js_tests/admin/SelectFilter2.test.js @@ -5,7 +5,7 @@ QUnit.module('admin.SelectFilter2'); QUnit.test('init', function(assert) { - var $ = django.jQuery; + const $ = django.jQuery; $('<form><select id="id"></select></form>').appendTo('#qunit-fixture'); $('<option value="0">A</option>').appendTo('#id'); SelectFilter.init('id', 'things', 0); |
