@@ -4,23 +4,30 @@ import { expect } from 'chai';
4
4
describe ( 'index' , ( ) => {
5
5
it ( 'should export Observable' , ( ) => {
6
6
expect ( index . Observable ) . to . exist ;
7
+ expect ( index . ConnectableObservable ) . to . exist ;
8
+ // Interfaces can be checked by creating a variable of that type
9
+ let operator : index . Operator < any , any > ;
7
10
} ) ;
8
11
9
12
it ( 'should export the Subject types' , ( ) => {
10
13
expect ( index . Subject ) . to . exist ;
11
14
expect ( index . BehaviorSubject ) . to . exist ;
12
15
expect ( index . ReplaySubject ) . to . exist ;
16
+ expect ( index . AsyncSubject ) . to . exist ;
13
17
} ) ;
14
18
15
19
it ( 'should export the schedulers' , ( ) => {
16
20
expect ( index . asapScheduler ) . to . exist ;
17
21
expect ( index . asyncScheduler ) . to . exist ;
18
22
expect ( index . queueScheduler ) . to . exist ;
19
23
expect ( index . animationFrameScheduler ) . to . exist ;
24
+ expect ( index . VirtualTimeScheduler ) . to . exist ;
25
+ expect ( index . VirtualAction ) . to . exist ;
20
26
} ) ;
21
27
22
28
it ( 'should export Subscription' , ( ) => {
23
29
expect ( index . Subscription ) . to . exist ;
30
+ expect ( index . Subscriber ) . to . exist ;
24
31
} ) ;
25
32
26
33
it ( 'should export Notification' , ( ) => {
@@ -38,6 +45,7 @@ describe('index', () => {
38
45
expect ( index . EmptyError ) . to . exist ;
39
46
expect ( index . ObjectUnsubscribedError ) . to . exist ;
40
47
expect ( index . UnsubscriptionError ) . to . exist ;
48
+ expect ( index . TimeoutError ) . to . exist ;
41
49
} ) ;
42
50
43
51
it ( 'should export constants' , ( ) => {
0 commit comments