1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added linting for JavaScript tests.

This commit is contained in:
Nik Nyby
2015-08-26 00:24:55 -04:00
committed by Tim Graham
parent 0e925de245
commit 722bf23518
10 changed files with 58 additions and 15 deletions

View File

@@ -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) {