diff --git a/src/test/fs.js b/src/test/fs.js index 7d41293c8..a68966333 100644 --- a/src/test/fs.js +++ b/src/test/fs.js @@ -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; }