File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ testProp(
83
83
84
84
for ( let i = 0 ; i < 10 ; i ++ ) {
85
85
t . is (
86
- fn ( ) ,
87
- iterator . getNextOr ( ( ) => fn ( ) )
86
+ iterator . getNextOr ( ( ) => fn ( ) ) ,
87
+ fn ( )
88
88
)
89
89
}
90
90
}
@@ -127,8 +127,8 @@ test(`Betterator concrete example`, t => {
127
127
} )
128
128
129
129
t . is (
130
- 42 ,
131
- iterator . getNextOr ( ( ) => 42 )
130
+ iterator . getNextOr ( ( ) => 42 ) ,
131
+ 42
132
132
)
133
133
} )
134
134
@@ -184,7 +184,7 @@ testProp(
184
184
}
185
185
186
186
for ( let i = 0 ; i < 10 ; i ++ ) {
187
- t . is ( await fn ( ) , await asyncIterator . getNextOr ( ( ) => fn ( ) ) )
187
+ t . is ( await asyncIterator . getNextOr ( ( ) => fn ( ) ) , await fn ( ) )
188
188
}
189
189
}
190
190
)
@@ -225,5 +225,5 @@ test(`AsyncBetterator concrete example`, async t => {
225
225
message : `Doesn't have next`
226
226
} )
227
227
228
- t . is ( 42 , await asyncIterator . getNextOr ( ( ) => delay ( 1 ) . then ( ( ) => 42 ) ) )
228
+ t . is ( await asyncIterator . getNextOr ( ( ) => delay ( 1 ) . then ( ( ) => 42 ) ) , 42 )
229
229
} )
You can’t perform that action at this time.
0 commit comments