@@ -32,14 +32,14 @@ describe("Config Tests", (): void => {
3232 setup_environment ( ) ;
3333 const config = new Config ( ) ;
3434 assert . deepEqual ( all_expected_tags ( ) , config . extra_common_tags ) ;
35- assert . equal ( "udp" , config . location ) ;
35+ assert . equal ( config . location , "udp" ) ;
3636 clear_environment ( ) ;
3737 } ) ;
3838
3939 it ( "env location override" , ( ) : void => {
4040 process . env . SPECTATOR_OUTPUT_LOCATION = "memory" ;
4141 const config = new Config ( ) ;
42- assert . equal ( "memory" , config . location ) ;
42+ assert . equal ( config . location , "memory" ) ;
4343 clear_environment ( ) ;
4444 } ) ;
4545
@@ -52,19 +52,19 @@ describe("Config Tests", (): void => {
5252 it ( "extra common tags" , ( ) : void => {
5353 setup_environment ( ) ;
5454 const config = new Config ( undefined , { "extra-tag" : "foo" } ) ;
55- assert . equal ( "udp" , config . location ) ;
56- assert . deepEqual ( { "extra-tag" : "foo" , "nf.container" : "main" , "nf.process" : "nodejs" } , config . extra_common_tags ) ;
55+ assert . equal ( config . location , "udp" ) ;
56+ assert . deepEqual ( config . extra_common_tags , { "extra-tag" : "foo" , "nf.container" : "main" , "nf.process" : "nodejs" } ) ;
5757 clear_environment ( ) ;
5858 } ) ;
5959
6060 it ( "valid output locations" , ( ) : void => {
61- assert . equal ( "none" , get_location ( "none" ) ) ;
62- assert . equal ( "memory" , get_location ( "memory" ) ) ;
63- assert . equal ( "stderr" , get_location ( "stderr" ) ) ;
64- assert . equal ( "stdout" , get_location ( "stdout" ) ) ;
65- assert . equal ( "udp" , get_location ( "udp" ) ) ;
66- assert . equal ( "file://" , get_location ( "file://" ) ) ;
67- assert . equal ( "udp://" , get_location ( "udp://" ) ) ;
61+ assert . equal ( get_location ( "none" ) , "none" ) ;
62+ assert . equal ( get_location ( "memory" ) , "memory" ) ;
63+ assert . equal ( get_location ( "stderr" ) , "stderr" ) ;
64+ assert . equal ( get_location ( "stdout" ) , "stdout" ) ;
65+ assert . equal ( get_location ( "udp" ) , "udp" ) ;
66+ assert . equal ( get_location ( "file://" ) , "file://" ) ;
67+ assert . equal ( get_location ( "udp://" ) , "udp://" ) ;
6868 } ) ;
6969
7070 it ( "invalid output location throws" , ( ) : void => {
0 commit comments