diff --git a/lib/__tests__/fs-integration.test.js b/lib/__tests__/fs-integration.test.js index efd7ba90..4d65d699 100644 --- a/lib/__tests__/fs-integration.test.js +++ b/lib/__tests__/fs-integration.test.js @@ -1,31 +1,33 @@ -var assert = require('assert') -var path = require('path') -var os = require('os') -var fs = require('fs') -var fse = require('../') +'use strict' + +const os = require('os') +const fs = require('fs') +const fse = require('../') +const path = require('path') +const assert = require('assert') /* global afterEach, beforeEach, describe, it */ -describe('native fs', function () { +describe('native fs', () => { var TEST_DIR - beforeEach(function (done) { + beforeEach(done => { TEST_DIR = path.join(os.tmpdir(), 'fs-extra', 'native-fs') fse.emptyDir(TEST_DIR, done) }) - afterEach(function (done) { + afterEach(done => { fse.remove(TEST_DIR, done) }) - it('should use native fs methods', function () { + it('should use native fs methods', () => { var file = path.join(TEST_DIR, 'write.txt') fse.writeFileSync(file, 'hello') var data = fse.readFileSync(file, 'utf8') assert.equal(data, 'hello') }) - it('should have native fs constants', function () { + it('should have native fs constants', () => { // Node.js v0.12 / IO.js if ('F_OK' in fs) { assert.equal(fse.F_OK, fs.F_OK)