@@ -22,10 +22,10 @@ describe('mapAsyncIterator', () => {
2222 } ) ;
2323 } ) ;
2424
25- it ( 'maps over async iterator ' , async ( ) => {
25+ it ( 'maps over async iterable ' , async ( ) => {
2626 const items = [ 1 , 2 , 3 ] ;
2727
28- const iterator : $FlowFixMe = {
28+ const iterable : $FlowFixMe = {
2929 [ Symbol . asyncIterator ] ( ) {
3030 return this ;
3131 } ,
@@ -39,7 +39,7 @@ describe('mapAsyncIterator', () => {
3939 } ,
4040 } ;
4141
42- const doubles = mapAsyncIterator ( iterator , ( x ) => x + x ) ;
42+ const doubles = mapAsyncIterator ( iterable , ( x ) => x + x ) ;
4343
4444 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 2 , done : false } ) ;
4545 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 4 , done : false } ) ;
@@ -119,10 +119,10 @@ describe('mapAsyncIterator', () => {
119119 } ) ;
120120 } ) ;
121121
122- it ( 'allows returning early from mapped async iterator ' , async ( ) => {
122+ it ( 'allows returning early from mapped async iterable ' , async ( ) => {
123123 const items = [ 1 , 2 , 3 ] ;
124124
125- const iterator : any = {
125+ const iterable : any = {
126126 [ Symbol . asyncIterator ] ( ) {
127127 return this ;
128128 } ,
@@ -134,7 +134,7 @@ describe('mapAsyncIterator', () => {
134134 } ,
135135 } ;
136136
137- const doubles = mapAsyncIterator ( iterator , ( x ) => x + x ) ;
137+ const doubles = mapAsyncIterator ( iterable , ( x ) => x + x ) ;
138138
139139 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 2 , done : false } ) ;
140140 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 4 , done : false } ) ;
@@ -182,10 +182,10 @@ describe('mapAsyncIterator', () => {
182182 } ) ;
183183 } ) ;
184184
185- it ( 'allows throwing errors through async iterators ' , async ( ) => {
185+ it ( 'allows throwing errors through async iterable ' , async ( ) => {
186186 const items = [ 1 , 2 , 3 ] ;
187187
188- const iterator : any = {
188+ const iterable : any = {
189189 [ Symbol . asyncIterator ] ( ) {
190190 return this ;
191191 } ,
@@ -197,7 +197,7 @@ describe('mapAsyncIterator', () => {
197197 } ,
198198 } ;
199199
200- const doubles = mapAsyncIterator ( iterator , ( x ) => x + x ) ;
200+ const doubles = mapAsyncIterator ( iterable , ( x ) => x + x ) ;
201201
202202 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 2 , done : false } ) ;
203203 expect ( await doubles . next ( ) ) . to . deep . equal ( { value : 4 , done : false } ) ;
0 commit comments