Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 728: Updated 'filer/tests/spec/fs.shell.spec.js' to use 'const/let' instead of 'var' #730

Merged
merged 5 commits into from
Feb 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions tests/spec/fs.shell.spec.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down