From abb5143850bc7f69df253f36e52cfb9355b9111d Mon Sep 17 00:00:00 2001 From: QingLianLiu Date: Wed, 30 Jan 2019 15:17:29 -0500 Subject: [PATCH] fix var to const --- tests/spec/fs.unwatchFile.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/spec/fs.unwatchFile.spec.js b/tests/spec/fs.unwatchFile.spec.js index 817909e8..a2cb7c11 100644 --- a/tests/spec/fs.unwatchFile.spec.js +++ b/tests/spec/fs.unwatchFile.spec.js @@ -1,5 +1,5 @@ -var util = require('../lib/test-utils.js'); -var expect = require('chai').expect; +const util = require('../lib/test-utils.js'); +const expect = require('chai').expect; // Waiting on https://github.com/filerjs/filer/pull/553 to land describe.skip('fs.unwatchFile', function() { @@ -7,12 +7,12 @@ describe.skip('fs.unwatchFile', function() { afterEach(util.cleanup); it('should be a function', function() { - var fs = util.fs(); + const fs = util.fs(); expect(typeof fs.unwatchFile).to.equal('function'); }); it('should not throw an error when using a file not being watched', function() { - var fs = util.fs(); + const fs = util.fs(); try { fs.unwatchFile('/myfile');