From a16c05185e54326361dcf569ecf06d19d2532cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Tue, 5 Jun 2018 08:25:20 +0200 Subject: [PATCH 1/2] Lint all *.js files in the repo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 891f2db..cf328a1 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "scripts": { "test": "npm run eslint && npm run jasmine", - "eslint": "eslint index.js spec/fetch.spec.js", + "eslint": "eslint .", "jasmine": "jasmine spec/fetch.spec.js spec/fetch-unit.spec.js" }, "engines": { From 0ab860af5c7ff182a6a3d216e5f7010de235e19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Tue, 5 Jun 2018 08:26:48 +0200 Subject: [PATCH 2/2] Fix linting errors --- spec/fetch-unit.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/fetch-unit.spec.js b/spec/fetch-unit.spec.js index c13f75a..8784cfd 100644 --- a/spec/fetch-unit.spec.js +++ b/spec/fetch-unit.spec.js @@ -33,7 +33,7 @@ describe('unit tests for index.js', function () { }); it('npm install should be called with production flag (default)', function (done) { - var opts = { cwd: 'some/path', production: true, save: true}; + var opts = { cwd: 'some/path', production: true, save: true }; fetch('platform', 'tmpDir', opts) .then(function (result) { expect(superspawn.spawn).toHaveBeenCalledWith('npm', jasmine.stringMatching(/production/), jasmine.any(Object)); @@ -59,7 +59,7 @@ describe('unit tests for index.js', function () { }); it('noprod should turn production off', function (done) { - var opts = { cwd: 'some/path', production: false}; + var opts = { cwd: 'some/path', production: false }; fetch('platform', 'tmpDir', opts) .then(function (result) { expect(superspawn.spawn).not.toHaveBeenCalledWith('npm', jasmine.stringMatching(/production/), jasmine.any(Object)); @@ -72,7 +72,7 @@ describe('unit tests for index.js', function () { }); it('when save is false, no-save flag should be passed through', function (done) { - var opts = { cwd: 'some/path', production: true, save: false}; + var opts = { cwd: 'some/path', production: true, save: false }; fetch('platform', 'tmpDir', opts) .then(function (result) { expect(superspawn.spawn).toHaveBeenCalledWith('npm', jasmine.stringMatching(/--no-save/), jasmine.any(Object));