From abd0d66e6686d76fc2cc1444d0006f59452e82af Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sat, 2 Jan 2016 18:59:55 -0700 Subject: [PATCH] Lint-free tileurlfunction.test.js --- test/.eslintrc.json | 3 ++- test/spec/ol/tileurlfunction.test.js | 12 +++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/test/.eslintrc.json b/test/.eslintrc.json index 3c8fcd734a..959a4f4b57 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.json @@ -3,6 +3,7 @@ "mocha": true }, "globals": { - "expect": true + "expect": true, + "sinon": true } } diff --git a/test/spec/ol/tileurlfunction.test.js b/test/spec/ol/tileurlfunction.test.js index 2c1bad89f9..6021e5bdaf 100644 --- a/test/spec/ol/tileurlfunction.test.js +++ b/test/spec/ol/tileurlfunction.test.js @@ -69,15 +69,21 @@ describe('ol.TileUrlFunction', function() { templates, tileGrid); var tileCoord = [3, 2, -2]; - sinon.stub(ol.tilecoord, 'hash', function() { return 3; }); + sinon.stub(ol.tilecoord, 'hash', function() { + return 3; + }); expect(tileUrlFunction(tileCoord)).to.eql('http://tile-1/3/2/1'); ol.tilecoord.hash.restore(); - sinon.stub(ol.tilecoord, 'hash', function() { return 2; }); + sinon.stub(ol.tilecoord, 'hash', function() { + return 2; + }); expect(tileUrlFunction(tileCoord)).to.eql('http://tile-3/3/2/1'); ol.tilecoord.hash.restore(); - sinon.stub(ol.tilecoord, 'hash', function() { return 1; }); + sinon.stub(ol.tilecoord, 'hash', function() { + return 1; + }); expect(tileUrlFunction(tileCoord)).to.eql('http://tile-2/3/2/1'); ol.tilecoord.hash.restore(); });