Verify that users can provide a properties property

This commit is contained in:
Andreas Hocevar
2021-05-25 11:00:33 +02:00
parent 432bd7f851
commit 0bb802f791

View File

@@ -115,6 +115,15 @@ describe('ol.layer.Layer', function () {
expect(o.get('properties')).to.be(undefined);
});
it('can have a `properties` property', function () {
const o = new Layer({
properties: {
properties: {foo: 'bar'},
},
});
expect(o.get('properties')).to.eql({foo: 'bar'});
});
it('throws on non-numeric opacity', function () {
function create() {
new Layer({