Skip to content

Commit 76cd866

Browse files
snowyusanjayaksaxena
authored andcommitted
test: add colSelectedCustomEntities test for map
1 parent 1bccde5 commit 76cd866

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/apiB-specs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,11 @@ describe( 'APIs — B', function () {
503503
} );
504504
} ); // .each() method
505505

506+
it( '.map() method', function () {
507+
const result = selOfFighters.map( ( e ) => e.out());
508+
expect( result ).to.deep.equal( d0ce.fighters );
509+
} ); // .each() method
510+
506511
it( '.filter() method', function () {
507512
expect( selOfFighters.filter( ( e ) => ( e.out() === d0ce.fighters[ 0 ] ) ).out() ).to.deep.equal( d0ce.fighters.slice( 0, 1 ) );
508513
} ); // .filter() method

0 commit comments

Comments
 (0)