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'); 'use strict';
var util = require('../lib/test-utils.js');
var expect = require('chai').expect; const Filer = require('../../src');
const util = require('../lib/test-utils.js');
const expect = require('chai').expect;
describe('fs.Shell', function() { describe('fs.Shell', function() {
beforeEach(util.setup); beforeEach(util.setup);
afterEach(util.cleanup); afterEach(util.cleanup);
it('is a function', function() { it('is a function', function() {
var fs = util.fs(); const fs = util.fs();
expect(typeof fs.Shell).to.equal('function'); expect(typeof fs.Shell).to.equal('function');
}); });
it('should return a FileSystemShell instance', function() { it('should return a FileSystemShell instance', function() {
var fs = util.fs(); const fs = util.fs();
var sh = new fs.Shell(); const sh = new fs.Shell();
expect(sh.prototype).to.deep.equal((new Filer.Shell(fs)).prototype); expect(sh.prototype).to.deep.equal((new Filer.Shell(fs)).prototype);
}); });
it('should reflect changes to the prototype', function(){ it('should reflect changes to the prototype', function(){
var fs = util.fs(); const fs = util.fs();
var sh = new fs.Shell(); const sh = new fs.Shell();
Filer.Shell.prototype.test = 'foo'; Filer.Shell.prototype.test = 'foo';