mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: backport libuv patch for fs.mkdir/mkdirSync on invlaid names (#20629)
Backports https://github.com/libuv/libuv/pull/2375
This commit is contained in:
@@ -623,6 +623,19 @@ describe('node feature', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('fs.mkdir/mkdirSync', () => {
|
||||
it('does not hang with {recursive: true} on invalid names', function (done) {
|
||||
if (process.platform !== 'win32') {
|
||||
return this.skip()
|
||||
}
|
||||
expect(() => fs.mkdirSync('invalid2:', { recursive: true })).to.throw()
|
||||
fs.mkdir('invalid1:', { recursive: true }, (err) => {
|
||||
expect(err).to.not.be.null()
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
it('includes the electron version in process.versions', () => {
|
||||
expect(process.versions)
|
||||
.to.have.own.property('electron')
|
||||
|
||||
Reference in New Issue
Block a user