From 42a96fc8b82d70d3c023483482871882105658ad Mon Sep 17 00:00:00 2001 From: amr-crabnebula Date: Wed, 29 Nov 2023 03:21:51 +0200 Subject: [PATCH] fix nodejs updater test on Ubuntu --- bindings/updater/nodejs/__test__/index.spec.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/updater/nodejs/__test__/index.spec.mjs b/bindings/updater/nodejs/__test__/index.spec.mjs index 44de8ba2..a419f50d 100644 --- a/bindings/updater/nodejs/__test__/index.spec.mjs +++ b/bindings/updater/nodejs/__test__/index.spec.mjs @@ -15,7 +15,7 @@ const isMac = process.platform === "darwin"; test("it updates correctly", async (t) => { const UPDATER_PRIVATE_KEY = await fs.readFile( path.join(__dirname, "../../../../crates/updater/tests/dummy.key"), - { encoding: "utf8" }, + { encoding: "utf8" } ); process.chdir(path.join(__dirname, "app")); @@ -35,7 +35,7 @@ test("it updates correctly", async (t) => { privateKey: UPDATER_PRIVATE_KEY, password: "", }, - { verbosity: 0 }, + { verbosity: 0 } ); } catch (e) { console.error("failed to package app"); @@ -57,7 +57,7 @@ test("it updates correctly", async (t) => { ] : isMac ? [["app", path.join("dist", "ElectronApp.app.tar.gz")]] - : [["appimage", path.join("dist", `ElectronApp_1.0.0_x86_64.AppImage`)]]; + : [["appimage", path.join("dist", `electron-app_1.0.0_x86_64.AppImage`)]]; for (let [format, updatePackagePath] of gneratedPackages) { const signaturePath = path.format({ name: updatePackagePath, ext: ".sig" }); @@ -115,7 +115,7 @@ test("it updates correctly", async (t) => { "dist", isNsis ? `ElectronApp_0.1.0_x64-setup.exe` - : `ElectronApp_0.1.0_x64_en-US.msi`, + : `ElectronApp_0.1.0_x64_en-US.msi` )}"`; await execa("powershell.exe", [ @@ -138,7 +138,7 @@ test("it updates correctly", async (t) => { ? "installdir/ElectronApp.exe" : isMac ? "ElectronApp.app/Contents/MacOS/ElectronApp" - : `ElectronApp_0.1.0_x86_64.AppImage`, + : `ElectronApp_0.1.0_x86_64.AppImage` ); // save the current creation time @@ -190,7 +190,7 @@ test("it updates correctly", async (t) => { counter += 1; if (counter == 10) { console.error( - "updater test timedout and couldn't verify the update has happened", + "updater test timedout and couldn't verify the update has happened" ); break; }