parent
21e7a4750a
commit
36ed81d77c
|
@ -0,0 +1,19 @@
|
||||||
|
'use strict';
|
||||||
|
const util = require('../lib/test-utils.js');
|
||||||
|
|
||||||
|
describe('fs.readdir fails when passing options, issue775', function () {
|
||||||
|
beforeEach(util.setup);
|
||||||
|
afterEach(util.cleanup);
|
||||||
|
|
||||||
|
it('should create a directory then call fs.readdir with options', function (done) {
|
||||||
|
const fs = util.fs();
|
||||||
|
fs.mkdir('/test_dir', undefined, (err) => {
|
||||||
|
if (err) {
|
||||||
|
done(err);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fs.readdir('/test_dir', { withFileTypes: true }, done);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
|
@ -92,6 +92,7 @@ require('./bugs/issue270.js');
|
||||||
require('./bugs/rename-dir-trailing-slash.js');
|
require('./bugs/rename-dir-trailing-slash.js');
|
||||||
require('./bugs/issue357.js');
|
require('./bugs/issue357.js');
|
||||||
require('./bugs/issue773.js');
|
require('./bugs/issue773.js');
|
||||||
|
require('./bugs/issue775.js');
|
||||||
require('./bugs/issue776.js');
|
require('./bugs/issue776.js');
|
||||||
|
|
||||||
// Sample code from README
|
// Sample code from README
|
||||||
|
|
Loading…
Reference in New Issue