From 2c892bf8a8e707f53637e5fb31dbfa2515f24818 Mon Sep 17 00:00:00 2001 From: Spocke Date: Mon, 27 Nov 2023 09:07:19 +0100 Subject: [PATCH] TINY-10394: Fixed promise return value --- src/main/ts/api/VersionLoader.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/ts/api/VersionLoader.ts b/src/main/ts/api/VersionLoader.ts index b780651..6133727 100644 --- a/src/main/ts/api/VersionLoader.ts +++ b/src/main/ts/api/VersionLoader.ts @@ -45,4 +45,8 @@ export const sSetupVersion = (version: string, testPlugins: string[], call export const sWithVersion = TinyVersions.sWithVersion; -export const pLoadVersion = (version: string): Promise => new Promise((resolve, reject) => Loader.load(version, resolve, reject)); +export const pLoadVersion = (version: string): Promise => { + return new Promise((resolve, reject) => { + Loader.load(version, resolve, reject); + }); +};