diff --git a/lib/gui/utils/path/filters/basename.js b/lib/gui/utils/path/filters/basename.js index 133f8e0b..23bee764 100644 --- a/lib/gui/utils/path/filters/basename.js +++ b/lib/gui/utils/path/filters/basename.js @@ -37,6 +37,6 @@ module.exports = function() { } return path.basename(input); - } + }; }; diff --git a/package.json b/package.json index 9bd497e4..6ce50fb1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "url": "git@github.com:resin-io/etcher.git" }, "scripts": { - "test": "electron-mocha --recursive --renderer tests/gui -R min", + "test": "gulp lint && electron-mocha --recursive --renderer tests/gui -R min", "start": "electron lib/start.js" }, "author": "Juan Cruz Viotti ", diff --git a/tests/gui/os/dropzone.spec.js b/tests/gui/os/dropzone.spec.js index 66969228..b13fe008 100644 --- a/tests/gui/os/dropzone.spec.js +++ b/tests/gui/os/dropzone.spec.js @@ -40,6 +40,7 @@ describe('Browser: OSDropzone', function() { })); it('should pass the file back to the callback as $file', function(done) { + const statStub = m.sinon.stub(fs, 'statSync'); $rootScope.onDropZone = function(file) { statStub.restore(); m.chai.expect(file).to.deep.equal({ @@ -49,7 +50,6 @@ describe('Browser: OSDropzone', function() { done(); }; - const statStub = m.sinon.stub(fs, 'statSync'); statStub.returns({ size: 999999999 }); @@ -73,13 +73,13 @@ describe('Browser: OSDropzone', function() { }); it('should pass undefined to the callback if not passing $file', function(done) { + const statStub = m.sinon.stub(fs, 'statSync'); $rootScope.onDropZone = function(file) { statStub.restore(); m.chai.expect(file).to.be.undefined; done(); }; - const statStub = m.sinon.stub(fs, 'statSync'); statStub.returns({ size: 999999999 });