File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed
Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ const exampleTaskEitherL: ExampleTaskEither = TaskEither_.left(exampleLeft);
1515const exampleTaskEitherR : ExampleTaskEither = TaskEither_ . right ( exampleRight ) ;
1616
1717describe ( 'ruinTaskEither' , ( ) => {
18- it ( 'should return right' , ( ) => {
19- expect ( ruins . fromTaskEither ( exampleTaskEitherR ) ) . resolves . toEqual ( exampleRight ) ;
18+ it ( 'should return right' , async ( ) => {
19+ await expect ( ruins . fromTaskEither ( exampleTaskEitherR ) ) . resolves . toEqual ( exampleRight ) ;
2020 } ) ;
2121
22- it ( 'should throw left' , ( ) => {
23- expect ( ruins . fromTaskEither ( exampleTaskEitherL ) ) . rejects . toEqual (
22+ it ( 'should throw left' , async ( ) => {
23+ await expect ( ruins . fromTaskEither ( exampleTaskEitherL ) ) . rejects . toEqual (
2424 crashObject ( exampleLeft ) ,
2525 ) ;
2626 } ) ;
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ const exampleTaskOptionN: ExampleTaskOption = TaskOption_.none;
1111const exampleTaskOptionS : ExampleTaskOption = TaskOption_ . some ( example ) ;
1212
1313describe ( 'ruinTaskOption' , ( ) => {
14- it ( 'should return value of some' , ( ) => {
15- expect ( ruins . fromTaskOption ( exampleTaskOptionS ) ) . resolves . toEqual ( example ) ;
14+ it ( 'should return value of some' , async ( ) => {
15+ await expect ( ruins . fromTaskOption ( exampleTaskOptionS ) ) . resolves . toEqual ( example ) ;
1616 } ) ;
1717
18- it ( 'should convert none to null' , ( ) => {
19- expect ( ruins . fromTaskOption ( exampleTaskOptionN ) ) . rejects . toEqual ( null ) ;
18+ it ( 'should convert none to null' , async ( ) => {
19+ await expect ( ruins . fromTaskOption ( exampleTaskOptionN ) ) . resolves . toEqual ( null ) ;
2020 } ) ;
2121} ) ;
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ const exampleTaskTheseR: ExampleTaskThese = TaskThese_.right(exampleRight);
1616const exampleTaskTheseB : ExampleTaskThese = TaskThese_ . both ( exampleLeft , exampleRight ) ;
1717
1818describe ( 'ruinTaskThese' , ( ) => {
19- it ( 'should return right' , ( ) => {
20- expect ( ruins . fromTaskThese ( exampleTaskTheseR ) ) . resolves . toEqual ( exampleRight ) ;
19+ it ( 'should return right' , async ( ) => {
20+ await expect ( ruins . fromTaskThese ( exampleTaskTheseR ) ) . resolves . toEqual ( exampleRight ) ;
2121 } ) ;
2222
23- it ( 'should throw left' , ( ) => {
24- expect ( ruins . fromTaskThese ( exampleTaskTheseL ) ) . rejects . toEqual (
23+ it ( 'should throw left' , async ( ) => {
24+ await expect ( ruins . fromTaskThese ( exampleTaskTheseL ) ) . rejects . toEqual (
2525 crashObject ( exampleLeft ) ,
2626 ) ;
2727 } ) ;
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ const exampleTask: Task<Answer> = async () => {
1616} ;
1717
1818describe ( 'ruinTask' , ( ) => {
19- it ( 'should execute side effects' , ( ) => {
20- expect ( ruins . fromTask ( exampleTask ) . then ( ( ) => mutableState ) ) . resolves . toEqual ( true ) ;
19+ it ( 'should execute side effects' , async ( ) => {
20+ await expect ( ruins . fromTask ( exampleTask ) . then ( ( ) => mutableState ) ) . resolves . toEqual ( true ) ;
2121 } ) ;
2222
23- it ( 'should return computation return value' , ( ) => {
24- expect ( ruins . fromTask ( exampleTask ) ) . resolves . toEqual ( answer ) ;
23+ it ( 'should return computation return value' , async ( ) => {
24+ await expect ( ruins . fromTask ( exampleTask ) ) . resolves . toEqual ( answer ) ;
2525 } ) ;
2626} ) ;
You can’t perform that action at this time.
0 commit comments