@@ -43,12 +43,14 @@ A stream to push an array into a REPL
4343
4444Blocks for ` time ` amount of time.
4545
46- ### canCreateSymLink
47- API to indicate whether the current running process can create
48- symlinks. On Windows, this returns false if the process running
49- doesn't have privileges to create symlinks (specifically
50- [ SeCreateSymbolicLinkPrivilege] ( https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx ) ).
51- On non-Windows platforms, this currently returns true.
46+ ### canCreateSymLink()
47+ * return [ < ; Boolean>]
48+
49+ Checks whether the current running process can create symlinks. On Windows, this
50+ returns ` false ` if the process running doesn't have privileges to create
51+ symlinks
52+ ([ SeCreateSymbolicLinkPrivilege] ( https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx ) ).
53+ On non-Windows platforms, this always returns ` true ` .
5254
5355### crashOnUnhandledRejection()
5456
@@ -63,9 +65,9 @@ failures.
6365Platform normalizes the ` dd ` command
6466
6567### enoughTestMem
66- * return [ < ; Boolean>]
68+ * [ < ; Boolean>]
6769
68- Check if there is more than 1gb of total memory.
70+ Indicates if there is more than 1gb of total memory.
6971
7072### expectsError([ fn, ] settings[ , exact] )
7173* ` fn ` [ < ; Function>] a function that should throw.
@@ -126,7 +128,7 @@ that happens within the `timeoutMs` timespan, or rejects with `error` as
126128a reason otherwise.
127129
128130### fixturesDir
129- * return [ < ; String>]
131+ * [ < ; String>]
130132
131133Path to the 'fixtures' directory.
132134
@@ -137,39 +139,39 @@ Path to the 'fixtures' directory.
137139Returns an instance of all possible ` ArrayBufferView ` s of the provided Buffer.
138140
139141### globalCheck
140- * return [ < ; Boolean>]
142+ * [ < ; Boolean>]
141143
142- Turn this off if the test should not check for global leaks.
144+ Set to ` false ` if the test should not check for global leaks.
143145
144146### hasCrypto
145- * return [ < ; Boolean>]
147+ * [ < ; Boolean>]
146148
147- Checks for 'openssl' .
149+ Indicates whether OpenSSL is available .
148150
149151### hasFipsCrypto
150- * return [ < ; Boolean>]
152+ * [ < ; Boolean>]
151153
152- Checks ` hasCrypto ` and ` crypto ` with fips.
154+ Indicates ` hasCrypto ` and ` crypto ` with fips.
153155
154156### hasIntl
155- * return [ < ; Boolean>]
157+ * [ < ; Boolean>]
156158
157- Checks if [ internationalization] is supported.
159+ Indicates if [ internationalization] is supported.
158160
159161### hasSmallICU
160- * return [ < ; Boolean>]
162+ * [ < ; Boolean>]
161163
162- Checks ` hasIntl ` and ` small-icu ` is supported.
164+ Indicates ` hasIntl ` and ` small-icu ` are supported.
163165
164166### hasIPv6
165- * return [ < ; Boolean>]
167+ * [ < ; Boolean>]
166168
167- Checks whether ` IPv6 ` is supported on this platform.
169+ Indicates whether ` IPv6 ` is supported on this platform.
168170
169171### hasMultiLocalhost
170- * return [ < ; Boolean>]
172+ * [ < ; Boolean>]
171173
172- Checks if there are multiple localhosts available.
174+ Indicates if there are multiple localhosts available.
173175
174176### hijackStderr(listener)
175177* ` listener ` [ < ; Function>] : a listener with a single parameter
@@ -190,12 +192,12 @@ be passed to `listener`. What's more, `process.stdout.writeTimes` is a count of
190192the number of calls.
191193
192194### inFreeBSDJail
193- * return [ < ; Boolean>]
195+ * [ < ; Boolean>]
194196
195197Checks whether free BSD Jail is true or false.
196198
197199### isAIX
198- * return [ < ; Boolean>]
200+ * [ < ; Boolean>]
199201
200202Platform check for Advanced Interactive eXecutive (AIX).
201203
@@ -206,54 +208,54 @@ Platform check for Advanced Interactive eXecutive (AIX).
206208Attempts to 'kill' ` pid `
207209
208210### isFreeBSD
209- * return [ < ; Boolean>]
211+ * [ < ; Boolean>]
210212
211213Platform check for Free BSD.
212214
213215### isLinux
214- * return [ < ; Boolean>]
216+ * [ < ; Boolean>]
215217
216218Platform check for Linux.
217219
218220### isLinuxPPCBE
219- * return [ < ; Boolean>]
221+ * [ < ; Boolean>]
220222
221223Platform check for Linux on PowerPC.
222224
223225### isOSX
224- * return [ < ; Boolean>]
226+ * [ < ; Boolean>]
225227
226228Platform check for macOS.
227229
228230### isSunOS
229- * return [ < ; Boolean>]
231+ * [ < ; Boolean>]
230232
231233Platform check for SunOS.
232234
233235### isWindows
234- * return [ < ; Boolean>]
236+ * [ < ; Boolean>]
235237
236238Platform check for Windows.
237239
238240### isWOW64
239- * return [ < ; Boolean>]
241+ * [ < ; Boolean>]
240242
241243Platform check for Windows 32-bit on Windows 64-bit.
242244
243- ### leakedGlobals
245+ ### leakedGlobals()
244246* return [ < ; Array>]
245247
246- Checks whether any globals are not on the ` knownGlobals ` list.
248+ Indicates whether any globals are not on the ` knownGlobals ` list.
247249
248250### localhostIPv4
249- * return [ < ; String>]
251+ * [ < ; String>]
250252
251- Gets IP of localhost
253+ IP of ` localhost ` .
252254
253255### localIPv6Hosts
254- * return [ < ; Array>]
256+ * [ < ; Array>]
255257
256- Array of IPV6 hosts .
258+ Array of IPV6 representations for ` localhost ` .
257259
258260### mustCall([ fn] [ , exact ] )
259261* ` fn ` [ < ; Function>] default = () => {}
@@ -294,9 +296,9 @@ the exit code and/or signal name of a node process that aborted, `false`
294296otherwise.
295297
296298### opensslCli
297- * return [ < ; Boolean>]
299+ * [ < ; Boolean>]
298300
299- Checks whether 'opensslCli' is supported.
301+ Indicates whether 'opensslCli' is supported.
300302
301303### platformTimeout(ms)
302304* ` ms ` [ < ; Number>]
@@ -305,14 +307,14 @@ Checks whether 'opensslCli' is supported.
305307Platform normalizes timeout.
306308
307309### PIPE
308- * return [ < ; String>]
310+ * [ < ; String>]
309311
310- Path to the test sock .
312+ Path to the test socket .
311313
312314### PORT
313- * return [ < ; Number>] default = ` 12346 `
315+ * [ < ; Number>]
314316
315- Port tests are running on .
317+ A port number for tests to use if one is needed .
316318
317319### printSkipMessage(msg)
318320* ` msg ` [ < ; String>]
@@ -335,12 +337,12 @@ Restore the original `process.stdout.write`. Used to restore `stdout` to its
335337original state after calling [ ` common.hijackStdOut() ` ] [ ] .
336338
337339### rootDir
338- * return [ < ; String>]
340+ * [ < ; String>]
339341
340342Path to the 'root' directory. either ` / ` or ` c:\\ ` (windows)
341343
342344### projectDir
343- * return [ < ; String>]
345+ * [ < ; String>]
344346
345347Path to the project directory.
346348
@@ -372,7 +374,7 @@ Platform normalizes the `pwd` command.
372374Synchronous version of ` spawnPwd ` .
373375
374376### tmpDir
375- * return [ < ; String>]
377+ * [ < ; String>]
376378
377379The realpath of the 'tmp' directory.
378380
@@ -422,7 +424,6 @@ The `DNS` module provides utilities related to the `dns` built-in module.
422424* ` syscall ` [ < ; String>] Defaults to ` dns.mockedSysCall ` .
423425* return [ < ; Function>]
424426
425-
426427A mock for the ` lookup ` option of ` net.connect() ` that would result in an error
427428with the ` code ` and the ` syscall ` specified. Returns a function that has the
428429same signature as ` dns.lookup() ` .
0 commit comments