getFeatureAtPixel always returns array

This commit is contained in:
Simon Seyock
2019-09-24 17:16:25 +02:00
parent f21d698915
commit 82486899df
4 changed files with 14 additions and 10 deletions
@@ -369,7 +369,8 @@ describe('ol.renderer.canvas.VectorTileLayer', function() {
const features = map.getFeaturesAtPixel([96, 96]);
document.body.removeChild(target);
map.dispose();
expect(features).to.be(null);
expect(features).to.be.an(Array);
expect(features).to.be.empty();
done();
}, 200);
});