Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwentzel committed Jan 8, 2024
1 parent 00d8d99 commit 636aca9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test/parallel/test-process-binding-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@ const utilBinding = process.binding('util');
assert.deepStrictEqual(
Object.keys(utilBinding).sort(),
[
'WeakReference',
'arrayBufferViewHasBuffer',
'constants',
'getCallerLocation',
'getConstructorName',
'getExternalValue',
'getOwnNonIndexProperties',
'getPromiseDetails',
'getProxyDetails',
'guessHandleType',
'isAnyArrayBuffer',
'isArrayBuffer',
'isArrayBufferDetached',
'isArrayBufferView',
'isAsyncFunction',
'isDataView',
Expand All @@ -23,8 +34,15 @@ assert.deepStrictEqual(
'isSetIterator',
'isTypedArray',
'isUint8Array',
'previewEntries',
'privateSymbols',
'shouldAbortOnUncaughtToggle',
'sleep',
'toUSVString'

Check failure on line 41 in test/parallel/test-process-binding-util.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Missing trailing comma
]);

for (const k of Object.keys(utilBinding)) {
assert.strictEqual(utilBinding[k], util.types[k]);
if (k in util.types) {
assert.strictEqual(utilBinding[k], util.types[k]);
}
}

0 comments on commit 636aca9

Please sign in to comment.