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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user