1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +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,16 +1,16 @@
/* global module, test, id_to_windowname,
/* global QUnit, id_to_windowname,
windowname_to_id */
/* eslint global-strict: 0, strict: 0 */
'use strict';
module('admin.RelatedObjectLookups');
QUnit.module('admin.RelatedObjectLookups');
test('id_to_windowname', function(assert) {
QUnit.test('id_to_windowname', function(assert) {
assert.equal(id_to_windowname('.test'), '__dot__test');
assert.equal(id_to_windowname('misc-test'), 'misc__dash__test');
});
test('windowname_to_id', function(assert) {
QUnit.test('windowname_to_id', function(assert) {
assert.equal(windowname_to_id('__dot__test'), '.test');
assert.equal(windowname_to_id('misc__dash__test'), 'misc-test');
});