fixing some lint issues
This commit is contained in:
@@ -73,14 +73,14 @@ describe('../../lib/streams/BaseRollingFileStream', function() {
|
||||
});
|
||||
|
||||
it('should not want to roll', function() {
|
||||
stream.shouldRoll().should.be.false;
|
||||
stream.shouldRoll().should.eql(false);
|
||||
});
|
||||
|
||||
it('should not roll', function() {
|
||||
var cbCalled = false;
|
||||
//just calls the callback straight away, no async calls
|
||||
stream.roll('basetest.log', function() { cbCalled = true; });
|
||||
cbCalled.should.be.true;
|
||||
cbCalled.should.eql(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -178,14 +178,19 @@ describe('DateRollingFileStream', function() {
|
||||
var stream;
|
||||
|
||||
before(function(done) {
|
||||
testTime = new Date(2012, 8, 12, 0, 10, 12),
|
||||
stream = new DateRollingFileStream(
|
||||
__dirname + '/test-date-rolling-file-stream-pattern',
|
||||
'.yyyy-MM-dd',
|
||||
{ alwaysIncludePattern: true },
|
||||
now
|
||||
testTime = new Date(2012, 8, 12, 0, 10, 12);
|
||||
remove(
|
||||
__dirname + '/test-date-rolling-file-stream-pattern.2012-09-12',
|
||||
function() {
|
||||
stream = new DateRollingFileStream(
|
||||
__dirname + '/test-date-rolling-file-stream-pattern',
|
||||
'.yyyy-MM-dd',
|
||||
{ alwaysIncludePattern: true },
|
||||
now
|
||||
);
|
||||
stream.write("First message\n", 'utf8', done);
|
||||
}
|
||||
);
|
||||
stream.write("First message\n", 'utf8', done);
|
||||
});
|
||||
|
||||
after(function(done) {
|
||||
|
||||
@@ -14,7 +14,7 @@ if (semver.satisfies(process.version, '>=0.10.0')) {
|
||||
RollingFileStream = require('../../lib/streams').RollingFileStream;
|
||||
|
||||
function remove(filename, cb) {
|
||||
fs.unlink(filename, function() { cb(); });
|
||||
fs.unlink(filename, function(err) { cb(); });
|
||||
}
|
||||
|
||||
function create(filename, cb) {
|
||||
|
||||
Reference in New Issue
Block a user