2020-05-14 10:32:38 +03:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
2024-07-15 21:32:26 +01:00
|
|
|
if (!common.isMacOS) {
|
2020-05-14 10:32:38 +03:00
|
|
|
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);
|
|
|
|
})
|
|
|
|
);
|