Answer the question
In order to leave comments, you need to log in
How to connect global variables from external libraries when unit testing angular?
The problem is this: there is an application with the Yandex.maps API connected. The API is enabled by adding a link in the script tag and creates a global variable ymaps and is used like this:
ymaps.ready(init);
function init(){
myMap = new ymaps.Map("map", {
center: [55.76, 37.64],
zoom: 15,
controls: ['zoomControl', 'fullscreenControl']
});
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question