+
Skip to content
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载