2021-04-18 13:32:38 +00:00
|
|
|
'use strict';
|
|
|
|
const util = require('../lib/test-utils.js');
|
|
|
|
|
|
|
|
describe('fs.readdir fails when passing options, issue775', function () {
|
|
|
|
beforeEach(util.setup);
|
|
|
|
afterEach(util.cleanup);
|
|
|
|
|
2021-04-18 15:57:22 +00:00
|
|
|
it.skip('should create a directory then call fs.readdir with options', function (done) {
|
2021-04-18 13:32:38 +00:00
|
|
|
const fs = util.fs();
|
|
|
|
fs.mkdir('/test_dir', undefined, (err) => {
|
|
|
|
if (err) {
|
|
|
|
done(err);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
fs.readdir('/test_dir', { withFileTypes: true }, done);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|