File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 526526
527527 /*--------------------------------------------------------------------------*/
528528
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+
529555 QUnit . module ( 'mutation methods' ) ;
530556
531557 ( function ( ) {
You can’t perform that action at this time.
0 commit comments