@@ -25,7 +25,9 @@ describe("export builtin", () => {
2525
2626 it ( "should create empty variable when NAME has no value" , async ( ) => {
2727 const env = new BashEnv ( ) ;
28- const result = await env . exec ( 'export EMPTY; test -z "$EMPTY" && echo empty' ) ;
28+ const result = await env . exec (
29+ 'export EMPTY; test -z "$EMPTY" && echo empty' ,
30+ ) ;
2931 expect ( result . stdout ) . toBe ( "empty\n" ) ;
3032 } ) ;
3133
@@ -60,7 +62,7 @@ describe("export builtin", () => {
6062
6163 it ( "should list newly exported variables within same exec" , async ( ) => {
6264 const env = new BashEnv ( ) ;
63- const result = await env . exec ( " export MSG=\ "it's working\ "; export" ) ;
65+ const result = await env . exec ( ' export MSG="it\ 's working"; export' ) ;
6466 expect ( result . stdout ) . toContain ( "it'\\''s working" ) ;
6567 } ) ;
6668
@@ -75,7 +77,9 @@ describe("export builtin", () => {
7577 describe ( "un-exporting with -n" , ( ) => {
7678 it ( "should remove variable with -n (within same exec)" , async ( ) => {
7779 const env = new BashEnv ( { env : { FOO : "bar" } } ) ;
78- const result = await env . exec ( 'export -n FOO; test -z "$FOO" && echo removed' ) ;
80+ const result = await env . exec (
81+ 'export -n FOO; test -z "$FOO" && echo removed' ,
82+ ) ;
7983 expect ( result . stdout ) . toBe ( "removed\n" ) ;
8084 } ) ;
8185
@@ -91,7 +95,9 @@ describe("export builtin", () => {
9195 describe ( "variable usage" , ( ) => {
9296 it ( "exported variable should be available in same exec" , async ( ) => {
9397 const env = new BashEnv ( ) ;
94- const result = await env . exec ( "export GREETING=hello; echo $GREETING world" ) ;
98+ const result = await env . exec (
99+ "export GREETING=hello; echo $GREETING world" ,
100+ ) ;
95101 expect ( result . stdout ) . toBe ( "hello world\n" ) ;
96102 } ) ;
97103
@@ -103,7 +109,9 @@ describe("export builtin", () => {
103109
104110 it ( "should work with conditional" , async ( ) => {
105111 const env = new BashEnv ( ) ;
106- const result = await env . exec ( 'export DEBUG=1; [ "$DEBUG" = "1" ] && echo debug_on' ) ;
112+ const result = await env . exec (
113+ 'export DEBUG=1; [ "$DEBUG" = "1" ] && echo debug_on' ,
114+ ) ;
107115 expect ( result . stdout ) . toBe ( "debug_on\n" ) ;
108116 } ) ;
109117
0 commit comments