From 9487e8ecc6b348caba57de440118dc7798ed4e2e Mon Sep 17 00:00:00 2001 From: kwchan19 <37305130+kwchan19@users.noreply.github.com> Date: Tue, 12 Feb 2019 14:50:57 -0500 Subject: [PATCH] Issue 728: Updated 'filer/tests/spec/fs.shell.spec.js' to use 'const/let' instead of 'var' (#730) * Fixes for review comments * Fixes for review comments * Fixes for review comments * Fixes for review comments * Fixes for review comments --- tests/spec/fs.shell.spec.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/spec/fs.shell.spec.js b/tests/spec/fs.shell.spec.js index 26b7d6c..83ffaa9 100644 --- a/tests/spec/fs.shell.spec.js +++ b/tests/spec/fs.shell.spec.js @@ -1,26 +1,28 @@ -var Filer = require('../../src'); -var util = require('../lib/test-utils.js'); -var expect = require('chai').expect; +'use strict'; + +const Filer = require('../../src'); +const util = require('../lib/test-utils.js'); +const expect = require('chai').expect; describe('fs.Shell', function() { beforeEach(util.setup); afterEach(util.cleanup); it('is a function', function() { - var fs = util.fs(); + const fs = util.fs(); expect(typeof fs.Shell).to.equal('function'); }); it('should return a FileSystemShell instance', function() { - var fs = util.fs(); - var sh = new fs.Shell(); + const fs = util.fs(); + const sh = new fs.Shell(); expect(sh.prototype).to.deep.equal((new Filer.Shell(fs)).prototype); }); it('should reflect changes to the prototype', function(){ - var fs = util.fs(); - var sh = new fs.Shell(); + const fs = util.fs(); + const sh = new fs.Shell(); Filer.Shell.prototype.test = 'foo';