test(#776): add regression test for issue #776

This commit is contained in:
Ben Heidemann 2021-04-18 14:23:23 +01:00 committed by David Humphrey
parent b3caddcfec
commit 78ae19fbad
2 changed files with 13 additions and 0 deletions

12
tests/bugs/issue776.js Normal file
View File

@ -0,0 +1,12 @@
'use strict';
const util = require('../lib/test-utils.js');
describe('fs.mkdir does not recursively create parent directories when called with { recursive: true }, issue776', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
it('should not throw when calling fs.mkdir with recursive flag set', function(done) {
const fs = util.fs();
fs.mkdir('/test_dir/a/b', { recursive: true }, done);
});
});

View File

@ -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/issue776.js');
// Sample code from README // Sample code from README
require('./spec/readme.example.spec'); require('./spec/readme.example.spec');