File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " iterable-async" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " A Collection of useful patterns." ,
55 "main" : " src" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -3,23 +3,19 @@ const { expect } = require('./support/chai'),
33
44context ( 'Async Array' , ( ) => {
55 describe ( 'Class attributes and properties' , ( ) => {
6- let asyncArray ;
7-
8- beforeEach ( ( ) => ( asyncArray = new AsyncArray ( ) ) ) ;
9-
106 it ( 'Should inherit from Array' , ( ) =>
11- expect ( asyncArray ) . to . be . instanceOf ( Array ) ) ;
7+ expect ( AsyncArray . prototype ) . to . be . instanceOf ( Array ) ) ;
128
139 it ( 'Should have access asyncFilter method' , ( ) =>
14- expect ( asyncArray . asyncFilter ) . to . be . a ( 'function' ) ) ;
10+ expect ( AsyncArray . prototype . asyncFilter ) . to . be . a ( 'function' ) ) ;
1511
1612 it ( 'Should have access asyncFind method' , ( ) =>
17- expect ( asyncArray . asyncFind ) . to . be . a ( 'function' ) ) ;
13+ expect ( AsyncArray . prototype . asyncFind ) . to . be . a ( 'function' ) ) ;
1814
1915 it ( 'Should have access asyncFindIndex method' , ( ) =>
20- expect ( asyncArray . asyncFindIndex ) . to . be . a ( 'function' ) ) ;
16+ expect ( AsyncArray . prototype . asyncFindIndex ) . to . be . a ( 'function' ) ) ;
2117
2218 it ( 'Should have access asyncMap method' , ( ) =>
23- expect ( asyncArray . asyncMap ) . to . be . a ( 'function' ) ) ;
19+ expect ( AsyncArray . prototype . asyncMap ) . to . be . a ( 'function' ) ) ;
2420 } ) ;
2521} ) ;
You can’t perform that action at this time.
0 commit comments