Fixed logic, format, and dependencies according to line note comments from last pull request. Tested on apache localhost server.
This commit is contained in:
parent
6b2a023dea
commit
4d24ab2c36
|
@ -1,4 +1,3 @@
|
|||
node_modules
|
||||
bower_components
|
||||
*~
|
||||
/logicnotes.js
|
||||
|
|
|
@ -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) {
|
||||
var fs = util.fs();
|
||||
var openFileDescription = require('src/open-file-description');
|
||||
fs.firstFD = require('src/constants').FIRST_DESCRIPTOR;
|
||||
var firstFD = require('src/constants').FIRST_DESCRIPTOR;
|
||||
var fd1;
|
||||
|
||||
fs.open('/file1', 'w+', function(error, fd) {
|
||||
if(error) throw error;
|
||||
expect(error).not.to.exist;
|
||||
expect(fd).to.be.a('number');
|
||||
expect(fd).not.to.equal(fd1);
|
||||
|
||||
this.allocDescriptor = function(openFileDescription) {
|
||||
expect(fd).to.equal(fs.firstFD);
|
||||
};
|
||||
expect(fd).to.equal(firstFD);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue