File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ test("Float16Array", () => {
51
51
} ) ;
52
52
53
53
test ( "import.meta.filename" , ( ) => {
54
+ // Test that `import.meta.filename` is provided by the runtime and contains the expected file path.
55
+ // We don't know the absolute location of the file `runtime/tests/js/webapis_test.js`, therefore
56
+ // we check only the suffix (the path relative to the repository root).
54
57
const value = import . meta. filename . replaceAll ( "\\" , "/" ) ;
55
58
const expectedSuffix = "/runtime/tests/js/webapis_tests.js" ;
56
59
assert (
@@ -60,6 +63,9 @@ test("import.meta.filename", () => {
60
63
} ) ;
61
64
62
65
test ( "import.meta.dirname" , ( ) => {
66
+ // Test that `import.meta.dirname` is provided by the runtime and contains the expected directory path.
67
+ // We don't know the absolute location of the directory `runtime/tests/js`, therefore we check only the
68
+ // suffix (the path relative to the repository root).
63
69
const value = import . meta. dirname . replaceAll ( "\\" , "/" ) ;
64
70
const expectedSuffix = "/runtime/tests/js" ;
65
71
assert (
You can’t perform that action at this time.
0 commit comments