Browse Source

Update headless tests for Map component

pull/4487/head
Artur Arseniev 4 years ago
parent
commit
8f8d859f28
  1. 2
      src/dom_components/model/ComponentMap.js
  2. 4
      test/specs/grapesjs/headless.js

2
src/dom_components/model/ComponentMap.js

@ -47,7 +47,7 @@ export default class ComponentMap extends ComponentImage {
initialize(o, opt) {
if (this.get('src')) this.parseFromSrc();
else this.updateSrc();
Component.prototype.initialize.apply(this, arguments);
ComponentImage.prototype.initialize.apply(this, arguments);
this.listenTo(this, 'change:address change:zoom change:mapType', this.updateSrc);
}

4
test/specs/grapesjs/headless.js

@ -112,6 +112,10 @@ describe('GrapesJS Headless', () => {
type: 'video',
attributes: { id: 'video-id' },
},
{
type: 'map',
attributes: { id: 'map-id' },
},
],
},
},

Loading…
Cancel
Save