File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,34 @@ import 'mocha';
24
24
import './lifecycle.spec' ;
25
25
import './main.spec' ;
26
26
import './app.spec' ;
27
+ import { expect } from 'chai' ;
28
+
29
+ /* tslint:disable-next-line:no-var-requires */
30
+ const indexExport = require ( '../src' ) ( ) ;
31
+
32
+ describe ( 'index' , ( ) => {
33
+ after ( ( ) => {
34
+ // Call cleanup (handles case of cleanup function not existing)
35
+ indexExport . cleanup && indexExport . cleanup ( ) ;
36
+ } ) ;
37
+
38
+ it ( 'should export wrap as a function' , ( ) => {
39
+ expect ( indexExport . wrap ) . to . be . an ( 'function' ) ;
40
+ } ) ;
41
+
42
+ it ( 'should export makeChange as a function' , ( ) => {
43
+ expect ( indexExport . makeChange ) . to . be . an ( 'function' ) ;
44
+ } ) ;
45
+
46
+ it ( 'should export mockConfig as a function' , ( ) => {
47
+ expect ( indexExport . mockConfig ) . to . be . an ( 'function' ) ;
48
+ } ) ;
49
+
50
+ it ( 'should export cleanup as a function' , ( ) => {
51
+ expect ( indexExport . cleanup ) . to . be . an ( 'function' ) ;
52
+ } ) ;
53
+ } ) ;
54
+
27
55
// import './providers/analytics.spec';
28
56
// import './providers/auth.spec';
29
57
// import './providers/database.spec';
You can’t perform that action at this time.
0 commit comments