@@ -454,14 +454,14 @@ describe('Result', () => {
454
454
it . each ( [
455
455
[ 'success' , async ( stream : any ) => stream . onCompleted ( { } ) ] ,
456
456
//['error', async (stream: any) => stream.onError(new Error('error'))],
457
- ] ) ( 'should thrown over an consumed result [%s]' , async ( _ , completeStream ) => {
457
+ ] ) ( 'should throw when iterating over consumed result [%s]' , async ( _ , completeStream ) => {
458
458
completeStream ( streamObserverMock )
459
459
460
460
await result . summary ( ) . catch ( ( ) => { } )
461
461
462
462
try {
463
463
await result
464
- expect ( 'not finish iteration over consumed result' ) . toBe ( true )
464
+ expect ( 'not to finish iteration over consumed result' ) . toBe ( true )
465
465
} catch ( e ) {
466
466
expect ( e ) . toEqual ( newError ( 'Result is already consumed' ) )
467
467
}
@@ -879,21 +879,21 @@ describe('Result', () => {
879
879
it . each ( [
880
880
[ 'success' , async ( stream : any ) => stream . onCompleted ( { } ) ] ,
881
881
[ 'error' , async ( stream : any ) => stream . onError ( new Error ( 'error' ) ) ] ,
882
- ] ) ( 'should thrown on iterate over an consumed result [%s]' , async ( _ , completeStream ) => {
882
+ ] ) ( 'should thrown on iterating over an consumed result [%s]' , async ( _ , completeStream ) => {
883
883
completeStream ( streamObserverMock )
884
884
885
885
await result . summary ( ) . catch ( ( ) => { } )
886
886
887
887
try {
888
888
for await ( const _ of result ) {
889
- expect ( 'not iterate over consumed result' ) . toBe ( true )
889
+ expect ( 'not to iterate over consumed result' ) . toBe ( true )
890
890
}
891
- expect ( 'not finish iteration over consumed result' ) . toBe ( true )
891
+ expect ( 'not to finish iteration over consumed result' ) . toBe ( true )
892
892
} catch ( e ) {
893
893
expect ( e ) . toEqual ( newError ( 'Result is already consumed' ) )
894
894
}
895
895
896
- expect ( 'not finish iteration over consumed result' )
896
+ expect ( 'not to finish iteration over consumed result' )
897
897
} )
898
898
899
899
describe ( '.return()' , ( ) => {
@@ -1257,7 +1257,7 @@ describe('Result', () => {
1257
1257
expect ( result . isOpen ( ) ) . toBe ( false )
1258
1258
} )
1259
1259
1260
- it ( 'should return false when the stream is failed' , async ( ) => {
1260
+ it ( 'should return false when the stream failed' , async ( ) => {
1261
1261
streamObserverMock . onError ( new Error ( 'test' ) )
1262
1262
1263
1263
await result . _subscribe ( { } ) . catch ( ( ) => { } )
@@ -1385,7 +1385,7 @@ describe('Result', () => {
1385
1385
expect ( result . isOpen ( ) ) . toBe ( true )
1386
1386
} )
1387
1387
1388
- it ( 'should be false after any interactio with the stream' , async ( ) => {
1388
+ it ( 'should be false after any interaction with the stream' , async ( ) => {
1389
1389
const it = result [ Symbol . asyncIterator ] ( )
1390
1390
await it . next ( )
1391
1391
0 commit comments