Skip to content

Commit

Permalink
Add experimental/fs test
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Feb 6, 2025
1 parent 759ea7c commit 7915a2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/js/modules/k6/experimental/fs/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ func TestOpen(t *testing.T) {
openPath: fsext.FilePathSeparator + testFileName,
wantPath: fsext.FilePathSeparator + testFileName,
},
{
name: "open file absolute path",
openPath: "file://" + fsext.FilePathSeparator + testFileName,
wantPath: fsext.FilePathSeparator + testFileName,
},
{
name: "open relative path",
openPath: filepath.Join(".", fsext.FilePathSeparator, testFileName),
Expand Down

0 comments on commit 7915a2f

Please sign in to comment.