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
|
node_modules
|
||||||
bower_components
|
bower_components
|
||||||
*~
|
*~
|
||||||
/logicnotes.js
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ define(function(require) {
|
||||||
|
|
||||||
SUPER_NODE_ID: '00000000-0000-0000-0000-000000000000',
|
SUPER_NODE_ID: '00000000-0000-0000-0000-000000000000',
|
||||||
|
|
||||||
//Reserved FileDescriptors for streams
|
// Reserved File Descriptors for streams
|
||||||
STDIN: 0,
|
STDIN: 0,
|
||||||
STDOUT: 1,
|
STDOUT: 1,
|
||||||
STDERR: 2,
|
STDERR: 2,
|
||||||
|
@ -80,4 +80,4 @@ define(function(require) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue