Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updating integration test for prerelease flag #7072

Merged
merged 2 commits into from Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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