mirror of https://gitee.com/openkylin/nodejs.git
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);
|
|
})
|
|
);
|