Skip to content

Commit

Permalink
tests: Replace QUnit.expect with assert.expect
Browse files Browse the repository at this point in the history
  • Loading branch information
jdforrester committed Oct 23, 2017
1 parent f595761 commit 87a0fc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jquery.ime.test.js
Expand Up @@ -241,7 +241,7 @@
$input.ime();
$input.focus();
ime = $input.data( 'ime' );
QUnit.expect( 1 );
assert.expect( 1 );
QUnit.stop();
ime.load( inputmethodId ).done( function () {
QUnit.ok( true, !!$.ime.inputmethods[ inputmethodId ], 'Rules file for ' + inputmethodId + ' exist and loaded correctly.' );
Expand All @@ -257,7 +257,7 @@
var i, inputmethod,
inputmethods = language.inputmethods;

QUnit.expect( inputmethods.length );
assert.expect( inputmethods.length );

for ( i = 0; i < inputmethods.length; i++ ) {
inputmethod = $.ime.sources[ inputmethods[ i ] ];
Expand Down Expand Up @@ -288,7 +288,7 @@
QUnit.test( opt.description, function () {
var ime, $input;

QUnit.expect( opt.tests.length + 1 );
assert.expect( opt.tests.length + 1 );
if ( opt.inputType === 'textarea' ) {
$input = $( '<textarea>' );
opt.inputType = 'textarea';
Expand Down

0 comments on commit 87a0fc1

Please sign in to comment.