File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 526
526
527
527
/*--------------------------------------------------------------------------*/
528
528
529
+ QUnit . module ( 'iteratee shorthands' ) ;
530
+
531
+ ( function ( ) {
532
+ var objects = [ { 'a' : 1 , 'b' : 2 } , { 'a' : 3 , 'b' : 4 } ] ;
533
+
534
+ QUnit . test ( 'should work with "_.matches" shorthands' , function ( assert ) {
535
+ assert . expect ( 1 ) ;
536
+
537
+ assert . deepEqual ( fp . filter ( { 'a' : 3 } ) ( objects ) , [ objects [ 1 ] ] ) ;
538
+ } ) ;
539
+
540
+ QUnit . test ( 'should work with "_.matchesProperty" shorthands' , function ( assert ) {
541
+ assert . expect ( 1 ) ;
542
+
543
+ assert . deepEqual ( fp . filter ( [ 'a' , 3 ] ) ( objects ) , [ objects [ 1 ] ] ) ;
544
+ } ) ;
545
+
546
+ QUnit . test ( 'should work with "_.property" shorthands' , function ( assert ) {
547
+ assert . expect ( 1 ) ;
548
+
549
+ assert . deepEqual ( fp . map ( 'a' ) ( objects ) , [ 1 , 3 ] ) ;
550
+ } ) ;
551
+ } ( ) ) ;
552
+
553
+ /*--------------------------------------------------------------------------*/
554
+
529
555
QUnit . module ( 'mutation methods' ) ;
530
556
531
557
( function ( ) {
You can’t perform that action at this time.
0 commit comments