Skip to content

Commit

Permalink
test: document fixtures.fileURL()
Browse files Browse the repository at this point in the history
PR-URL: nodejs#49083
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
LiviaMedeiros authored and rluvaton committed Aug 15, 2023
1 parent dbdb24e commit cd5a59c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,12 @@ The absolute path to the `test/fixtures/` directory.

Returns the result of `path.join(fixtures.fixturesDir, ...args)`.

### `fixtures.fileURL(...args)`

* `...args` [\<string>][<string>]

Returns the result of `url.pathToFileURL(fixtures.path(...args))`.

### `fixtures.readSync(args[, enc])`

* `args` [\<string>][<string>] | [\<Array>][<Array>]
Expand Down

0 comments on commit cd5a59c

Please sign in to comment.