Improve browser tests
- Listen for image change event instead of waiting 200 ms - Properly fake fetch response, can never be undefined on resolve
This commit is contained in:
@@ -208,7 +208,7 @@ describe('ol/layer/MapboxVector', () => {
|
||||
originalFetch = fetch;
|
||||
window.fetch = function (url) {
|
||||
fetchUrl = url;
|
||||
return Promise.resolve();
|
||||
return Promise.resolve({ok: false});
|
||||
};
|
||||
});
|
||||
afterEach(function () {
|
||||
|
||||
Reference in New Issue
Block a user