From 8d824a7f7e2b5fd102fe5db32c06671825a65277 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Thu, 20 Dec 2018 20:11:32 -0500 Subject: [PATCH] Remove fs.Shell() and Filer.Shell() functions --- src/shell/{shell.js => index.js} | 0 tests/spec/fs.shell.spec.js | 29 ----------------------------- 2 files changed, 29 deletions(-) rename src/shell/{shell.js => index.js} (100%) delete mode 100644 tests/spec/fs.shell.spec.js diff --git a/src/shell/shell.js b/src/shell/index.js similarity index 100% rename from src/shell/shell.js rename to src/shell/index.js diff --git a/tests/spec/fs.shell.spec.js b/tests/spec/fs.shell.spec.js deleted file mode 100644 index 26b7d6c..0000000 --- a/tests/spec/fs.shell.spec.js +++ /dev/null @@ -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'); - }); -});