aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/basic.js
diff options
context:
space:
mode:
authorJason Bedard <jason+github@jbedard.ca>2018-01-14 00:46:20 -0800
committerTimmy Willison <4timmywil@gmail.com>2018-01-16 10:39:08 -0500
commit1ea092a54b00aa4d902f4e22ada3854d195d4a18 (patch)
tree705d445aa449743e06e6354bb3f746076700e31f /test/unit/basic.js
parent91fb18190e5ab9821e3c74b6aecbb5d197c6c5f6 (diff)
downloadjquery-1ea092a54b00aa4d902f4e22ada3854d195d4a18.tar.gz
jquery-1ea092a54b00aa4d902f4e22ada3854d195d4a18.zip
Core: deprecate jQuery.type
Fixes gh-3605 Close gh-3895
Diffstat (limited to 'test/unit/basic.js')
-rw-r--r--test/unit/basic.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/unit/basic.js b/test/unit/basic.js
index 028492c2c..d01ee5346 100644
--- a/test/unit/basic.js
+++ b/test/unit/basic.js
@@ -76,17 +76,13 @@ QUnit.test( "show/hide", function( assert ) {
}
QUnit.test( "core", function( assert ) {
- assert.expect( 21 );
+ assert.expect( 17 );
var elem = jQuery( "<div></div><span></span>" );
assert.strictEqual( elem.length, 2, "Correct number of elements" );
assert.strictEqual( jQuery.trim( " hello " ), "hello", "jQuery.trim" );
- assert.strictEqual( jQuery.type( null ), "null", "jQuery.type(null)" );
- assert.strictEqual( jQuery.type( undefined ), "undefined", "jQuery.type(undefined)" );
- assert.strictEqual( jQuery.type( "a" ), "string", "jQuery.type(String)" );
-
assert.ok( jQuery.isPlainObject( { "a": 2 } ), "jQuery.isPlainObject(object)" );
assert.ok( !jQuery.isPlainObject( "foo" ), "jQuery.isPlainObject(String)" );