mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Added linting for JavaScript tests.
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
/* global module, test, SelectBox */
|
||||
/* eslint global-strict: 0, strict: 0 */
|
||||
'use strict';
|
||||
|
||||
module('admin.SelectBox');
|
||||
|
||||
test('init: no options', function(assert) {
|
||||
var $ = django.jQuery;
|
||||
$('<select id="id"></select>').appendTo('#qunit-fixture');
|
||||
SelectBox.init('id');
|
||||
assert.equal(SelectBox.cache['id'].length, 0);
|
||||
assert.equal(SelectBox.cache.id.length, 0);
|
||||
});
|
||||
|
||||
test('filter', function(assert) {
|
||||
|
||||
Reference in New Issue
Block a user