Add test for generating the cache

This commit is contained in:
Pieter Vander Vennet 2022-02-14 01:15:20 +01:00
parent 4ad4db3bbd
commit 312dbe7aff
7 changed files with 70 additions and 13 deletions

View file

@ -7,7 +7,6 @@ import {LayerConfigJson} from "../Models/ThemeConfig/Json/LayerConfigJson";
import xml2js from 'xml2js';
export default class ScriptUtils {
public static fixUtils() {
Utils.externalDownloadFunction = ScriptUtils.DownloadJSON
}
@ -46,7 +45,7 @@ export default class ScriptUtils {
})
}
public static DownloadJSON(url, headers?: any): Promise<any> {
private static DownloadJSON(url, headers?: any): Promise<any> {
return new Promise((resolve, reject) => {
try {
headers = headers ?? {}