From 067f9beb888aa6cf7aa92e362d3e636937c3a33c Mon Sep 17 00:00:00 2001 From: yoavgurevich Date: Fri, 16 May 2014 17:17:50 -0400 Subject: [PATCH] Final revisions on removal of arbitrary logic and indentation issues --- src/filesystem/interface.js | 1 - tests/spec/fs.open.spec.js | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) 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(); }); });