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
This commit is contained in:
kwchan19 2019-02-12 14:50:57 -05:00 committed by David Humphrey
parent e6f8ef2251
commit 9487e8ecc6
1 changed files with 10 additions and 8 deletions

View File

@ -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';