mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
cff7da7749
PR-URL: https://github.com/nodejs/node/pull/53820 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
18 lines
341 B
JavaScript
18 lines
341 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const fs = require('fs');
|
|
|
|
if (!common.isMacOS) {
|
|
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);
|
|
})
|
|
);
|