fix: windows path separator being wrong

This commit is contained in:
Anthony Laibe 2018-12-06 09:32:52 +00:00
parent cc79ebb922
commit 72f87012a9
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/*globals after, before, describe, it*/
const {assert} = require('chai');
const os = require('os');
const path = require('path');
const underlyingFs = require('fs-extra');
const fs = require('../lib/core/fs');
@ -59,7 +59,7 @@ describe('fs', () => {
it('should not throw exceptions on paths inside the temporary dir root', (done) => {
assert.doesNotThrow(async () => {
try {
await fs[func](os.tmpdir() + '/foo');
await fs[func](path.join(os.tmpdir(), 'foo'));
} catch(e) {
if(e.message.indexOf('EPERM') === 0) throw e;
}