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

Updated to QUnit 2.0.1.

This commit is contained in:
Tim Graham
2016-12-19 12:43:47 -05:00
committed by GitHub
parent a85e84212e
commit 620dcdde6e
11 changed files with 709 additions and 496 deletions

View File

@@ -1,17 +1,17 @@
/* global module, test, SelectBox */
/* global QUnit, SelectBox */
/* eslint global-strict: 0, strict: 0 */
'use strict';
module('admin.SelectBox');
QUnit.module('admin.SelectBox');
test('init: no options', function(assert) {
QUnit.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);
});
test('filter', function(assert) {
QUnit.test('filter', function(assert) {
var $ = django.jQuery;
$('<select id="id"></select>').appendTo('#qunit-fixture');
$('<option value="0">A</option>').appendTo('#id');