Skip to content

Commit add85af

Browse files
committed
Selector: add test for jQuery.unique() alias
1 parent e1090c3 commit add85af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/selector.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ test( "jQuery.contains", function() {
387387
});
388388

389389
test("jQuery.uniqueSort", function() {
390-
expect( 14 );
390+
expect( 15 );
391391

392392
function Arrayish( arr ) {
393393
var i = this.length = arr.length;
@@ -463,6 +463,8 @@ test("jQuery.uniqueSort", function() {
463463
deepEqual( jQuery.uniqueSort( test.input ).slice( 0, length ), test.expected, label + " (array)" );
464464
deepEqual( jQuery.uniqueSort( new Arrayish(test.input) ).slice( 0, length ), test.expected, label + " (quasi-array)" );
465465
});
466+
467+
strictEqual( jQuery.unique, jQuery.uniqueSort, "jQuery.unique() is an alias for jQuery.uniqueSort()" );
466468
});
467469

468470
testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {

0 commit comments

Comments
 (0)