File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "PLATFORM_TREE_ID" : " abc123" ,
66 "PLATFORM_PROJECT_ENTROPY" : " def789" ,
77
8- "SOME_VARIABLE" : " some value"
8+ "SOME_VARIABLE" : " some value" ,
9+
10+ "CUSTOM_PREFIX_VARIABLE_WITH_CUSTOM_PREFIX" : " with custom prefix"
911}
Original file line number Diff line number Diff line change @@ -306,6 +306,16 @@ describe("Config tests", () => {
306306
307307 assert . equal ( value [ 'somevar' ] , 'someval' ) ;
308308 } ) ;
309+
310+ it ( 'return a variable with a custom prefix' , ( ) => {
311+ const c = new psh . Config ( mockEnvironmentRuntime , "CUSTOM_PREFIX_" ) ;
312+
313+ const withCustomPrefix = c . _getValue ( "variable_with_custom_prefix" ) ;
314+ const hasNoCustomPrefix = c . _getValue ( "somevar" ) ;
315+
316+ assert . equal ( withCustomPrefix , "with custom prefix" ) ;
317+ assert . equal ( hasNoCustomPrefix , null ) ;
318+ } ) ;
309319 } ) ;
310320
311321 describe ( "Application tests" , ( ) => {
You can’t perform that action at this time.
0 commit comments