Fixed logic, format, and dependencies according to line note comments from last pull request. Tested on apache localhost server.

This commit is contained in:
yoavgurevich 2014-05-16 11:43:54 -04:00
parent 6b2a023dea
commit 4d24ab2c36
3 changed files with 4 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
node_modules node_modules
bower_components bower_components
*~ *~
/logicnotes.js

View File

@ -77,19 +77,14 @@ define(["Filer", "util"], function(Filer, util) {
it('should return the argument value of the file descriptor index matching the value set by the first useable file descriptor constant', function(done) { it('should return the argument value of the file descriptor index matching the value set by the first useable file descriptor constant', function(done) {
var fs = util.fs(); var fs = util.fs();
var openFileDescription = require('src/open-file-description'); var firstFD = require('src/constants').FIRST_DESCRIPTOR;
fs.firstFD = require('src/constants').FIRST_DESCRIPTOR;
var fd1; var fd1;
fs.open('/file1', 'w+', function(error, fd) { fs.open('/file1', 'w+', function(error, fd) {
if(error) throw error; if(error) throw error;
expect(error).not.to.exist; expect(error).not.to.exist;
expect(fd).to.be.a('number'); expect(fd).to.be.a('number');
expect(fd).not.to.equal(fd1); expect(fd).to.equal(firstFD);
this.allocDescriptor = function(openFileDescription) {
expect(fd).to.equal(fs.firstFD);
};
done(); done();
}); });
}); });