File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,11 +1027,15 @@ The `tmpdir` module supports the use of a temporary directory for testing.
1027
1027
1028
1028
The realpath of the testing temporary directory.
1029
1029
1030
- ### ` url `
1030
+ ### ` fileURL([...paths]) `
1031
1031
1032
- * [ \< string>] [ <string> ]
1032
+ * ` ...paths ` [ \< string>] [ <string> ]
1033
+ * return [ \< URL>] [ <URL> ]
1034
+
1035
+ Resolves a sequence of paths into absolute url in the temporary directory.
1033
1036
1034
- The absolute url of the testing temporary directory with trailing ` / ` .
1037
+ When called without arguments, returns absolute url of the testing
1038
+ temporary directory with explicit trailing ` / ` .
1035
1039
1036
1040
### ` refresh(useSpawn) `
1037
1041
@@ -1098,6 +1102,7 @@ See [the WPT tests README][] for details.
1098
1102
[ <Function> ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
1099
1103
[ <Object> ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
1100
1104
[ <RegExp> ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
1105
+ [ <URL> ] : https://developer.mozilla.org/en-US/docs/Web/API/URL
1101
1106
[ <any> ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types
1102
1107
[ <bigint> ] : https://github.com/tc39/proposal-bigint
1103
1108
[ <boolean> ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type
You can’t perform that action at this time.
0 commit comments