File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,32 @@ define([
26
26
] , function ( MCT , plugins ) {
27
27
describe ( "MCT" , function ( ) {
28
28
var openmct ;
29
+ var mockPlugin ;
30
+ var mockPlugin2 ;
29
31
30
32
beforeEach ( function ( ) {
33
+ mockPlugin = jasmine . createSpy ( 'plugin' ) ;
34
+ mockPlugin2 = jasmine . createSpy ( 'plugin' ) ;
35
+
31
36
openmct = new MCT ( ) ;
37
+
38
+ openmct . install ( mockPlugin ) ;
39
+ openmct . install ( mockPlugin2 ) ;
32
40
} ) ;
33
41
34
42
it ( "exposes plugins" , function ( ) {
35
43
expect ( openmct . plugins ) . toEqual ( plugins ) ;
36
44
} ) ;
45
+
46
+ describe ( "when started" , function ( ) {
47
+ beforeEach ( function ( ) {
48
+ openmct . start ( ) ;
49
+ } ) ;
50
+
51
+ it ( "calls plugins for configuration" , function ( ) {
52
+ expect ( mockPlugin ) . toHaveBeenCalledWith ( openmct ) ;
53
+ expect ( mockPlugin2 ) . toHaveBeenCalledWith ( openmct ) ;
54
+ } ) ;
55
+ } ) ;
37
56
} ) ;
38
57
} ) ;
You can’t perform that action at this time.
0 commit comments