@@ -43,12 +43,14 @@ A stream to push an array into a REPL
43
43
44
44
Blocks for ` time ` amount of time.
45
45
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 ` .
52
54
53
55
### crashOnUnhandledRejection()
54
56
@@ -63,9 +65,9 @@ failures.
63
65
Platform normalizes the ` dd ` command
64
66
65
67
### enoughTestMem
66
- * return [ < ; Boolean>]
68
+ * [ < ; Boolean>]
67
69
68
- Check if there is more than 1gb of total memory.
70
+ Indicates if there is more than 1gb of total memory.
69
71
70
72
### expectsError([ fn, ] settings[ , exact] )
71
73
* ` fn ` [ < ; Function>] a function that should throw.
@@ -126,7 +128,7 @@ that happens within the `timeoutMs` timespan, or rejects with `error` as
126
128
a reason otherwise.
127
129
128
130
### fixturesDir
129
- * return [ < ; String>]
131
+ * [ < ; String>]
130
132
131
133
Path to the 'fixtures' directory.
132
134
@@ -137,39 +139,39 @@ Path to the 'fixtures' directory.
137
139
Returns an instance of all possible ` ArrayBufferView ` s of the provided Buffer.
138
140
139
141
### globalCheck
140
- * return [ < ; Boolean>]
142
+ * [ < ; Boolean>]
141
143
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.
143
145
144
146
### hasCrypto
145
- * return [ < ; Boolean>]
147
+ * [ < ; Boolean>]
146
148
147
- Checks for 'openssl' .
149
+ Indicates whether OpenSSL is available .
148
150
149
151
### hasFipsCrypto
150
- * return [ < ; Boolean>]
152
+ * [ < ; Boolean>]
151
153
152
- Checks ` hasCrypto ` and ` crypto ` with fips.
154
+ Indicates ` hasCrypto ` and ` crypto ` with fips.
153
155
154
156
### hasIntl
155
- * return [ < ; Boolean>]
157
+ * [ < ; Boolean>]
156
158
157
- Checks if [ internationalization] is supported.
159
+ Indicates if [ internationalization] is supported.
158
160
159
161
### hasSmallICU
160
- * return [ < ; Boolean>]
162
+ * [ < ; Boolean>]
161
163
162
- Checks ` hasIntl ` and ` small-icu ` is supported.
164
+ Indicates ` hasIntl ` and ` small-icu ` are supported.
163
165
164
166
### hasIPv6
165
- * return [ < ; Boolean>]
167
+ * [ < ; Boolean>]
166
168
167
- Checks whether ` IPv6 ` is supported on this platform.
169
+ Indicates whether ` IPv6 ` is supported on this platform.
168
170
169
171
### hasMultiLocalhost
170
- * return [ < ; Boolean>]
172
+ * [ < ; Boolean>]
171
173
172
- Checks if there are multiple localhosts available.
174
+ Indicates if there are multiple localhosts available.
173
175
174
176
### hijackStderr(listener)
175
177
* ` 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
190
192
the number of calls.
191
193
192
194
### inFreeBSDJail
193
- * return [ < ; Boolean>]
195
+ * [ < ; Boolean>]
194
196
195
197
Checks whether free BSD Jail is true or false.
196
198
197
199
### isAIX
198
- * return [ < ; Boolean>]
200
+ * [ < ; Boolean>]
199
201
200
202
Platform check for Advanced Interactive eXecutive (AIX).
201
203
@@ -206,54 +208,54 @@ Platform check for Advanced Interactive eXecutive (AIX).
206
208
Attempts to 'kill' ` pid `
207
209
208
210
### isFreeBSD
209
- * return [ < ; Boolean>]
211
+ * [ < ; Boolean>]
210
212
211
213
Platform check for Free BSD.
212
214
213
215
### isLinux
214
- * return [ < ; Boolean>]
216
+ * [ < ; Boolean>]
215
217
216
218
Platform check for Linux.
217
219
218
220
### isLinuxPPCBE
219
- * return [ < ; Boolean>]
221
+ * [ < ; Boolean>]
220
222
221
223
Platform check for Linux on PowerPC.
222
224
223
225
### isOSX
224
- * return [ < ; Boolean>]
226
+ * [ < ; Boolean>]
225
227
226
228
Platform check for macOS.
227
229
228
230
### isSunOS
229
- * return [ < ; Boolean>]
231
+ * [ < ; Boolean>]
230
232
231
233
Platform check for SunOS.
232
234
233
235
### isWindows
234
- * return [ < ; Boolean>]
236
+ * [ < ; Boolean>]
235
237
236
238
Platform check for Windows.
237
239
238
240
### isWOW64
239
- * return [ < ; Boolean>]
241
+ * [ < ; Boolean>]
240
242
241
243
Platform check for Windows 32-bit on Windows 64-bit.
242
244
243
- ### leakedGlobals
245
+ ### leakedGlobals()
244
246
* return [ < ; Array>]
245
247
246
- Checks whether any globals are not on the ` knownGlobals ` list.
248
+ Indicates whether any globals are not on the ` knownGlobals ` list.
247
249
248
250
### localhostIPv4
249
- * return [ < ; String>]
251
+ * [ < ; String>]
250
252
251
- Gets IP of localhost
253
+ IP of ` localhost ` .
252
254
253
255
### localIPv6Hosts
254
- * return [ < ; Array>]
256
+ * [ < ; Array>]
255
257
256
- Array of IPV6 hosts .
258
+ Array of IPV6 representations for ` localhost ` .
257
259
258
260
### mustCall([ fn] [ , exact ] )
259
261
* ` fn ` [ < ; Function>] default = () => {}
@@ -294,9 +296,9 @@ the exit code and/or signal name of a node process that aborted, `false`
294
296
otherwise.
295
297
296
298
### opensslCli
297
- * return [ < ; Boolean>]
299
+ * [ < ; Boolean>]
298
300
299
- Checks whether 'opensslCli' is supported.
301
+ Indicates whether 'opensslCli' is supported.
300
302
301
303
### platformTimeout(ms)
302
304
* ` ms ` [ < ; Number>]
@@ -305,14 +307,14 @@ Checks whether 'opensslCli' is supported.
305
307
Platform normalizes timeout.
306
308
307
309
### PIPE
308
- * return [ < ; String>]
310
+ * [ < ; String>]
309
311
310
- Path to the test sock .
312
+ Path to the test socket .
311
313
312
314
### PORT
313
- * return [ < ; Number>] default = ` 12346 `
315
+ * [ < ; Number>]
314
316
315
- Port tests are running on .
317
+ A port number for tests to use if one is needed .
316
318
317
319
### printSkipMessage(msg)
318
320
* ` msg ` [ < ; String>]
@@ -335,12 +337,12 @@ Restore the original `process.stdout.write`. Used to restore `stdout` to its
335
337
original state after calling [ ` common.hijackStdOut() ` ] [ ] .
336
338
337
339
### rootDir
338
- * return [ < ; String>]
340
+ * [ < ; String>]
339
341
340
342
Path to the 'root' directory. either ` / ` or ` c:\\ ` (windows)
341
343
342
344
### projectDir
343
- * return [ < ; String>]
345
+ * [ < ; String>]
344
346
345
347
Path to the project directory.
346
348
@@ -372,7 +374,7 @@ Platform normalizes the `pwd` command.
372
374
Synchronous version of ` spawnPwd ` .
373
375
374
376
### tmpDir
375
- * return [ < ; String>]
377
+ * [ < ; String>]
376
378
377
379
The realpath of the 'tmp' directory.
378
380
@@ -422,7 +424,6 @@ The `DNS` module provides utilities related to the `dns` built-in module.
422
424
* ` syscall ` [ < ; String>] Defaults to ` dns.mockedSysCall ` .
423
425
* return [ < ; Function>]
424
426
425
-
426
427
A mock for the ` lookup ` option of ` net.connect() ` that would result in an error
427
428
with the ` code ` and the ` syscall ` specified. Returns a function that has the
428
429
same signature as ` dns.lookup() ` .
0 commit comments