test: refactor fs.mkdirSync(..., { recursive: true }) for Node.js <10.12.0

This commit is contained in:
Lam Wei Li 2022-07-25 00:16:05 +08:00
parent abe8e67a5c
commit adcc06fb88
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

View File

@ -524,7 +524,9 @@ test('log4js fileSyncAppender', (batch) => {
errorEROFS
);
fs.mkdirSync('tmpA/tmpB/tmpC', { recursive: true });
fs.mkdirSync('tmpA');
fs.mkdirSync('tmpA/tmpB');
fs.mkdirSync('tmpA/tmpB/tmpC');
sandboxedLog4js = sandbox.require('../../lib/log4js', {
requires: {