From 7e6c964d12260141ecec6ee1af638dec010d35f3 Mon Sep 17 00:00:00 2001 From: Tomasz Misiukiewicz Date: Mon, 6 Mar 2023 13:34:40 +0100 Subject: [PATCH] return promise --- tests/unit/nativeVersionUpdaterTest.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/unit/nativeVersionUpdaterTest.js b/tests/unit/nativeVersionUpdaterTest.js index d5c8c53f3d5c..60161bafeb2a 100644 --- a/tests/unit/nativeVersionUpdaterTest.js +++ b/tests/unit/nativeVersionUpdaterTest.js @@ -77,10 +77,8 @@ describe('updateAndroidVersion', () => { } } `], - ])('updateAndroidVersion("%s", "%s")', (versionName, versionCode, expected) => { - updateAndroidVersion(versionName, versionCode).then(() => { - const result = fs.readFileSync(BUILD_GRADLE_PATH, {encoding: 'utf8'}).toString(); - expect(result).toBe(expected); - }); - }); + ])('updateAndroidVersion("%s", "%s")', (versionName, versionCode, expected) => updateAndroidVersion(versionName, versionCode).then(() => { + const result = fs.readFileSync(BUILD_GRADLE_PATH, {encoding: 'utf8'}).toString(); + expect(result).toBe(expected); + })); });