From 77ba9e2cd52754758edbef8be0d10b7eba4d77e1 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sun, 16 Oct 2011 22:30:28 +0000 Subject: [PATCH] Adding missing test for isEmpty --- tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js index b846b532b1..7a1281d397 100644 --- a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js @@ -36,6 +36,8 @@ test( 'Is functions', function() { strictEqual( $.isEmpty( 'string' ), false, 'isEmptry: "string"' ); strictEqual( $.isEmpty( '0' ), true, 'isEmptry: "0"' ); + strictEqual( $.isEmpty( '' ), true, 'isEmptry: ""' ); + strictEqual( $.isEmpty( 1 ), false, 'isEmptry: 1' ); strictEqual( $.isEmpty( [] ), true, 'isEmptry: []' ); strictEqual( $.isEmpty( {} ), true, 'isEmptry: {}' ); -- 2.20.1