Skip to content

Commit 1dbf437

Browse files
committed
squash: update docs
1 parent b172d81 commit 1dbf437

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/common/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,11 +1027,15 @@ The `tmpdir` module supports the use of a temporary directory for testing.
10271027

10281028
The realpath of the testing temporary directory.
10291029

1030-
### `url`
1030+
### `fileURL([...paths])`
10311031

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.
10331036

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 `/`.
10351039

10361040
### `refresh(useSpawn)`
10371041

@@ -1098,6 +1102,7 @@ See [the WPT tests README][] for details.
10981102
[<Function>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
10991103
[<Object>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
11001104
[<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
11011106
[<any>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types
11021107
[<bigint>]: https://github.com/tc39/proposal-bigint
11031108
[<boolean>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type

0 commit comments

Comments
 (0)