File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ define([
43
43
expect ( openmct . plugins ) . toEqual ( plugins ) ;
44
44
} ) ;
45
45
46
- describe ( "when started " , function ( ) {
46
+ describe ( "start " , function ( ) {
47
47
beforeEach ( function ( ) {
48
48
openmct . start ( ) ;
49
49
} ) ;
@@ -53,5 +53,25 @@ define([
53
53
expect ( mockPlugin2 ) . toHaveBeenCalledWith ( openmct ) ;
54
54
} ) ;
55
55
} ) ;
56
+
57
+ describe ( "setAssetPath" , function ( ) {
58
+ var testAssetPath ;
59
+
60
+ beforeEach ( function ( ) {
61
+ testAssetPath = "some/path" ;
62
+ openmct . legacyExtension = jasmine . createSpy ( 'legacyExtension' ) ;
63
+ openmct . setAssetPath ( testAssetPath ) ;
64
+ } ) ;
65
+
66
+ it ( "internally configures the path for assets" , function ( ) {
67
+ expect ( openmct . legacyExtension ) . toHaveBeenCalledWith (
68
+ 'constants' ,
69
+ {
70
+ key : "ASSETS_PATH" ,
71
+ value : testAssetPath
72
+ }
73
+ ) ;
74
+ } ) ;
75
+ } ) ;
56
76
} ) ;
57
77
} ) ;
You can’t perform that action at this time.
0 commit comments