Skip to content

Commit f205998

Browse files
authored
fix: updating integration test for prerelease flag (#7072)
1 parent caf05a9 commit f205998

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
# Need to separate from other tests because logic is specific to when TOKEN env vars are set
7373
test-updater:
74-
runs-on: macos-latest
74+
runs-on: ubuntu-latest
7575
steps:
7676
- name: Checkout code repository
7777
uses: actions/checkout@v3

test/snapshots/updater/nsisUpdaterTest.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,10 @@ Object {
407407
Object {
408408
"sha512": "@sha512",
409409
"size": "@size",
410-
"url": "electron-quick-start-typescript-1.0.2-arm64.exe",
410+
"url": "electron-quick-start-typescript-1.0.2-x64.exe",
411411
},
412412
],
413-
"path": "electron-quick-start-typescript-1.0.2-arm64.exe",
413+
"path": "electron-quick-start-typescript-1.0.2-x64.exe",
414414
"releaseDate": "@releaseDate",
415415
"releaseName": "1.0.2",
416416
"releaseNotes": "",
@@ -426,10 +426,10 @@ Object {
426426
Object {
427427
"sha512": "@sha512",
428428
"size": "@size",
429-
"url": "electron-quick-start-typescript-2.0.0-arm64.exe",
429+
"url": "electron-quick-start-typescript-2.0.0-x64.exe",
430430
},
431431
],
432-
"path": "electron-quick-start-typescript-2.0.0-arm64.exe",
432+
"path": "electron-quick-start-typescript-2.0.0-x64.exe",
433433
"releaseDate": "@releaseDate",
434434
"releaseName": "2.0.0",
435435
"releaseNotes": "",

test/src/updater/nsisUpdaterTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test("github allowPrerelease=true", async () => {
4747
updater.updateConfigPath = await writeUpdateConfig<GithubOptions>({
4848
provider: "github",
4949
owner: "mmaietta",
50-
repo: "electron-builder-test",
50+
repo: "electron-builder-test-prerelease",
5151
})
5252
const updateCheckResult = await updater.checkForUpdates()
5353
expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot()
@@ -59,7 +59,7 @@ test("github allowPrerelease=false", async () => {
5959
updater.updateConfigPath = await writeUpdateConfig<GithubOptions>({
6060
provider: "github",
6161
owner: "mmaietta",
62-
repo: "electron-builder-test",
62+
repo: "electron-builder-test-prerelease",
6363
})
6464
const updateCheckResult = await updater.checkForUpdates()
6565
expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot()

0 commit comments

Comments
 (0)