diff --git a/src/filesystem/interface.js b/src/filesystem/interface.js index a2ad302..c00c381 100644 --- a/src/filesystem/interface.js +++ b/src/filesystem/interface.js @@ -82,7 +82,6 @@ define(function(require) { fs.stdin = STDIN; fs.stdout = STDOUT; fs.stderr = STDERR; - fs.firstFD = FIRST_DESCRIPTOR; // Safely expose the list of open files and file // descriptor management functions diff --git a/tests/spec/fs.open.spec.js b/tests/spec/fs.open.spec.js index 3b8b0ec..45d9098 100644 --- a/tests/spec/fs.open.spec.js +++ b/tests/spec/fs.open.spec.js @@ -82,9 +82,7 @@ define(["Filer", "util"], function(Filer, util) { fs.open('/file1', 'w+', function(error, fd) { if(error) throw error; - expect(error).not.to.exist; - expect(fd).to.be.a('number'); - expect(fd).to.equal(firstFD); + expect(fd).to.equal(firstFD); done(); }); });