File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ describe("marbles", () => {
76
76
m . flush ( ) ;
77
77
78
78
expect ( done ) . toBeInstanceOf ( Function ) ;
79
- expect ( done . fail ) . toBeInstanceOf ( Function ) ;
80
79
setTimeout ( done , 0 ) ;
81
80
} )
82
81
) ;
Original file line number Diff line number Diff line change 6
6
import { Observable } from "rxjs" ;
7
7
import { DoneSubscriber } from "../done-subscriber" ;
8
8
9
- export interface DoneFunction {
10
- ( ) : void ;
11
- fail : ( error : any ) => void ;
12
- }
9
+ export type DoneFunction = ( error ?: Error ) => void ;
13
10
14
11
export function observe < T > (
15
12
observableTest : ( ) => Observable < T >
16
13
) : ( done : DoneFunction ) => void {
17
14
return ( done : DoneFunction ) => {
18
- const subscriber = new DoneSubscriber ( done . fail , done ) ;
15
+ const subscriber = new DoneSubscriber ( done , done ) ;
19
16
observableTest ( ) . subscribe ( subscriber ) ;
20
17
} ;
21
18
}
You can’t perform that action at this time.
0 commit comments