Fix tests

This commit is contained in:
Pieter Vander Vennet 2024-09-10 14:44:25 +02:00
parent 4085bbc1ac
commit e6dab1a83f
4 changed files with 9 additions and 2 deletions

View file

@ -23,7 +23,7 @@ export class AvailableRasterLayers {
const eli = await Utils.downloadJson<{ features: EditorLayerIndex }>(
"./assets/data/editor-layer-index.json"
)
this._editorLayerIndex = eli.features.filter((l) => l.properties.id !== "Bing")
this._editorLayerIndex = eli.features?.filter((l) => l.properties.id !== "Bing") ?? []
this._editorLayerIndexStore.set(this._editorLayerIndex)
return this._editorLayerIndex
}

View file

@ -962,6 +962,10 @@ export default class ThemeViewState implements SpecialVisualizationState {
}
public async reportError(message: string | Error | XMLHttpRequest, extramessage:string = "") {
if(Utils.runningFromConsole){
console.error("Got (in themeViewSTate.reportError):", message, extramessage)
return
}
const isTesting = this.featureSwitchIsTesting.data
console.log(
isTesting