File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ describe("supplyDefaultFunction", () => {
81
81
{ kind : "function" , module : "system" , name : "getStatus" } ,
82
82
{ kind : "function" , module : "logger" , name : "logWarning" } ,
83
83
{ kind : "function" , module : "customOps" , name : "combineValues" } ,
84
+ { kind : "global" , module : "myenv" , name : "globalVar" } ,
85
+ { kind : "memory" , module : "other" , name : "memChange" } ,
84
86
] ;
85
87
86
88
const mockImportObject : ASImports = {
@@ -97,5 +99,7 @@ describe("supplyDefaultFunction", () => {
97
99
expect ( typeof mockImportObject [ "system" ] ?. [ "getStatus" ] ) . toBe ( "function" ) ;
98
100
expect ( typeof mockImportObject [ "logger" ] ?. [ "logWarning" ] ) . toBe ( "function" ) ;
99
101
expect ( typeof mockImportObject [ "customOps" ] ?. [ "combineValues" ] ) . toBe ( "function" ) ;
102
+ expect ( mockImportObject [ "myenv" ] ?. [ "globalVar" ] ) . toBeUndefined ( ) ;
103
+ expect ( mockImportObject [ "other" ] ?. [ "memChange" ] ) . toBeUndefined ( ) ;
100
104
} ) ;
101
105
} ) ;
You can’t perform that action at this time.
0 commit comments