Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hooks.beforeEach(function() {
setProperties(this, london);
let testContext = this;
let waiterFulfilled = false;
this.owner.register('component:g-map', GMapComponent.extend({
init() {
this._super(...arguments);
registerWaiter(() => {
if (this._componentsInitialized === true) {
if (!waiterFulfilled) {
let { id, components, map } = this.publicAPI;
setProperties(testContext, { id, components, map });
waiterFulfilled = true;
}
return true;
}
});
}
}));