File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ const client = await sandbox.connect();
2020//console.log("Running command...");
2121//console.log(await client.commands.run("echo 'Hello World'"));
2222
23+ // ports testing
24+ console . log ( "Getting ports..." ) ;
25+ console . log ( await client . ports . getAll ( ) ) ;
26+
2327// fs testing
24- /* console.log("creating directory...");
28+ console . log ( "creating directory..." ) ;
2529console . log ( await client . fs . mkdir ( "/workspace/newdir" ) ) ;
2630console . log ( "creating file in new dir..." ) ;
2731console . log ( await client . fs . writeFile ( "/workspace/newdir/text.txt" , new TextEncoder ( ) . encode ( "Hello World" ) ) ) ;
@@ -41,7 +45,7 @@ console.log(await client.fs.readdir("/workspace"));
4145console . log ( "Removing directory..." ) ;
4246console . log ( await client . fs . remove ( "/workspace/newdir" ) ) ;
4347console . log ( "Reading directory after deleting newdir..." ) ;
44- console.log(await client.fs.readdir("/workspace"));*/
48+ console . log ( await client . fs . readdir ( "/workspace" ) ) ;
4549
4650// tasks testing
4751console . log ( "Getting tasks..." ) ;
You can’t perform that action at this time.
0 commit comments