Remove fs.Shell() and Filer.Shell() functions

This commit is contained in:
David Humphrey 2018-12-20 20:11:32 -05:00
parent bfe4385a83
commit 8d824a7f7e
2 changed files with 0 additions and 29 deletions

View File

@ -1,29 +0,0 @@
var Filer = require('../../src');
var util = require('../lib/test-utils.js');
var expect = require('chai').expect;
describe('fs.Shell', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
it('is a function', function() {
var 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();
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();
Filer.Shell.prototype.test = 'foo';
expect(sh.test).to.equal('foo');
});
});