mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 17:03:34 +00:00

Fixes: https://github.com/nodejs/node/issues/33348 PR-URL: https://github.com/nodejs/node/pull/33395 Refs: https://github.com/nodejs/node/issues/33348 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
18 lines
339 B
JavaScript
18 lines
339 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const fs = require('fs');
|
|
|
|
if (!common.isOSX) {
|
|
common.skip('this tests works only on MacOS');
|
|
}
|
|
|
|
const assert = require('assert');
|
|
|
|
fs.readdir(
|
|
Buffer.from('/dev'),
|
|
{ withFileTypes: true, encoding: 'buffer' },
|
|
common.mustCall((e, d) => {
|
|
assert.strictEqual(e, null);
|
|
})
|
|
);
|