Skip to content

Commit

Permalink
fix: updating integration test for prerelease flag (#7072)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Aug 17, 2022
1 parent caf05a9 commit f205998
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Expand Up @@ -71,7 +71,7 @@ jobs:

# Need to separate from other tests because logic is specific to when TOKEN env vars are set
test-updater:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions test/snapshots/updater/nsisUpdaterTest.js.snap
Expand Up @@ -407,10 +407,10 @@ Object {
Object {
"sha512": "@sha512",
"size": "@size",
"url": "electron-quick-start-typescript-1.0.2-arm64.exe",
"url": "electron-quick-start-typescript-1.0.2-x64.exe",
},
],
"path": "electron-quick-start-typescript-1.0.2-arm64.exe",
"path": "electron-quick-start-typescript-1.0.2-x64.exe",
"releaseDate": "@releaseDate",
"releaseName": "1.0.2",
"releaseNotes": "",
Expand All @@ -426,10 +426,10 @@ Object {
Object {
"sha512": "@sha512",
"size": "@size",
"url": "electron-quick-start-typescript-2.0.0-arm64.exe",
"url": "electron-quick-start-typescript-2.0.0-x64.exe",
},
],
"path": "electron-quick-start-typescript-2.0.0-arm64.exe",
"path": "electron-quick-start-typescript-2.0.0-x64.exe",
"releaseDate": "@releaseDate",
"releaseName": "2.0.0",
"releaseNotes": "",
Expand Down
4 changes: 2 additions & 2 deletions test/src/updater/nsisUpdaterTest.ts
Expand Up @@ -47,7 +47,7 @@ test("github allowPrerelease=true", async () => {
updater.updateConfigPath = await writeUpdateConfig<GithubOptions>({
provider: "github",
owner: "mmaietta",
repo: "electron-builder-test",
repo: "electron-builder-test-prerelease",
})
const updateCheckResult = await updater.checkForUpdates()
expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot()
Expand All @@ -59,7 +59,7 @@ test("github allowPrerelease=false", async () => {
updater.updateConfigPath = await writeUpdateConfig<GithubOptions>({
provider: "github",
owner: "mmaietta",
repo: "electron-builder-test",
repo: "electron-builder-test-prerelease",
})
const updateCheckResult = await updater.checkForUpdates()
expect(removeUnstableProperties(updateCheckResult?.updateInfo)).toMatchSnapshot()
Expand Down

0 comments on commit f205998

Please sign in to comment.