From 038d0f2d78a6135b395639812be3da81a8282b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Rittm=C3=BCller?= Date: Wed, 6 Jan 2016 19:50:11 +0100 Subject: [PATCH] Corrected formatting issues --- test/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/index.js b/test/index.js index c4957aa..6374054 100644 --- a/test/index.js +++ b/test/index.js @@ -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(); }); }); @@ -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(); }); }); @@ -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(); }); });