diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-19 12:43:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-19 12:43:47 -0500 |
| commit | 620dcdde6e0e423a9343c63c7bc36d9e4301a2d8 (patch) | |
| tree | 999b2d8c46216a45c074f9b889f916f2fd3b8794 /js_tests/admin/inlines.test.js | |
| parent | a85e84212e0c0aa05a7c7ddd3ca81a4228ef013e (diff) | |
Updated to QUnit 2.0.1.
Diffstat (limited to 'js_tests/admin/inlines.test.js')
| -rw-r--r-- | js_tests/admin/inlines.test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js_tests/admin/inlines.test.js b/js_tests/admin/inlines.test.js index b18b266024..2ff6a14577 100644 --- a/js_tests/admin/inlines.test.js +++ b/js_tests/admin/inlines.test.js @@ -1,8 +1,8 @@ -/* global module, test */ +/* global QUnit */ /* eslint global-strict: 0, strict: 0 */ 'use strict'; -module('admin.inlines: tabular formsets', { +QUnit.module('admin.inlines: tabular formsets', { beforeEach: function() { var $ = django.jQuery; var that = this; @@ -19,19 +19,19 @@ module('admin.inlines: tabular formsets', { } }); -test('no forms', function(assert) { +QUnit.test('no forms', function(assert) { assert.ok(this.inlineRow.hasClass('dynamic-first')); assert.equal(this.table.find('.add-row a').text(), this.addText); }); -test('add form', function(assert) { +QUnit.test('add form', function(assert) { var addButton = this.table.find('.add-row a'); assert.equal(addButton.text(), this.addText); addButton.click(); assert.ok(this.table.find('#first-1').hasClass('row2')); }); -test('add/remove form events', function(assert) { +QUnit.test('add/remove form events', function(assert) { assert.expect(6); var $ = django.jQuery; var $document = $(document); @@ -52,7 +52,7 @@ test('add/remove form events', function(assert) { deleteLink.click(); }); -test('existing add button', function(assert) { +QUnit.test('existing add button', function(assert) { var $ = django.jQuery; $('#qunit-fixture').empty(); // Clear the table added in beforeEach $('#qunit-fixture').append($('#tabular-formset').text()); |
