Declare variables before assignment
This commit is contained in:
@@ -117,6 +117,8 @@ describe('ol.geom.GeometryCollection', function() {
|
||||
|
||||
describe('#intersectsExtent()', function() {
|
||||
|
||||
var point, line, poly, multi;
|
||||
|
||||
beforeEach(function() {
|
||||
point = new ol.geom.Point([5, 20]);
|
||||
line = new ol.geom.LineString([[10, 20], [30, 40]]);
|
||||
@@ -136,7 +138,6 @@ describe('ol.geom.GeometryCollection', function() {
|
||||
expect(multi.intersectsExtent([0, 0, 5, 5])).to.be(true);
|
||||
});
|
||||
|
||||
|
||||
it('returns false for non-matching extent within own extent', function() {
|
||||
var extent = [0, 35, 5, 40];
|
||||
expect(poly.intersectsExtent(extent)).to.be(false);
|
||||
|
||||
Reference in New Issue
Block a user