Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Corrected formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrimue committed Jan 6, 2016
1 parent c7f8ab9 commit 038d0f2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ describe('isAutostartEnabled()', function() {
it('should respond with isEnabled=false and not throw for fake service', function(done) {
autostart.isAutostartEnabled('TestService1', function(error, isEnabled) {
expect(isEnabled).to.equal(false);
if(error) {
expect(error.code).to.equal('ENOENT');
} else {
expect(error).to.equal(null);
}
if (error) {
expect(error.code).to.equal('ENOENT');
} else {
expect(error).to.equal(null);
}
done();
});
});
Expand All @@ -78,10 +78,10 @@ describe('enableAutostart()', function() {
});
});
it('should fail if fs.stats/crontab throws an error', function(done) {
process.env.FORCEERROR = true;
process.env.FORCEERROR = true;
autostart.enableAutostart('TestService1', 'echo "test"', process.cwd(), function(error) {
expect(error).to.not.equal(null);
process.env.FORCEERROR = false;
process.env.FORCEERROR = false;
done();
});
});
Expand All @@ -101,10 +101,10 @@ describe('disableAutostart()', function() {
});
});
it('should fail if fs.stats/crontab throws an error', function(done) {
process.env.FORCEERROR = true;
process.env.FORCEERROR = true;
autostart.disableAutostart('SomeNameIHopeNobodyWillEverTake', function(error) {
expect(error).to.not.equal(null);
process.env.FORCEERROR = false;
process.env.FORCEERROR = false;
done();
});
});
Expand Down

0 comments on commit 038d0f2

Please sign in to comment.