| ... | ... | @@ -12,7 +12,6 @@ import { |
| 12 | 12 | isDesktopUpdateButtonDisabled, |
| 13 | 13 | resolveDesktopUpdateButtonAction, |
| 14 | 14 | shouldShowArm64IntelBuildWarning, |
| 15 | | shouldShowDesktopUpdateButton, |
| 16 | 15 | shouldToastDesktopUpdateActionResult, |
| 17 | 16 | } from "./desktopUpdate.logic"; |
| 18 | 17 | |
| ... | ... | @@ -42,7 +41,6 @@ describe("desktop update button state", () => { |
| 42 | 41 | status: "available", |
| 43 | 42 | availableVersion: "1.1.0", |
| 44 | 43 | }; |
| 45 | | expect(shouldShowDesktopUpdateButton(state)).toBe(true); |
| 46 | 44 | expect(resolveDesktopUpdateButtonAction(state)).toBe("download"); |
| 47 | 45 | }); |
| 48 | 46 | |
| ... | ... | @@ -55,7 +53,6 @@ describe("desktop update button state", () => { |
| 55 | 53 | errorContext: "download", |
| 56 | 54 | canRetry: true, |
| 57 | 55 | }; |
| 58 | | expect(shouldShowDesktopUpdateButton(state)).toBe(true); |
| 59 | 56 | expect(resolveDesktopUpdateButtonAction(state)).toBe("download"); |
| 60 | 57 | expect(getDesktopUpdateButtonTooltip(state)).toContain("Click to retry"); |
| 61 | 58 | }); |
| ... | ... | @@ -70,7 +67,6 @@ describe("desktop update button state", () => { |
| 70 | 67 | errorContext: "install", |
| 71 | 68 | canRetry: true, |
| 72 | 69 | }; |
| 73 | | expect(shouldShowDesktopUpdateButton(state)).toBe(true); |
| 74 | 70 | expect(resolveDesktopUpdateButtonAction(state)).toBe("install"); |
| 75 | 71 | expect(getDesktopUpdateButtonTooltip(state)).toContain("Click to retry"); |
| 76 | 72 | }); |
| ... | ... | @@ -85,7 +81,6 @@ describe("desktop update button state", () => { |
| 85 | 81 | errorContext: null, |
| 86 | 82 | canRetry: true, |
| 87 | 83 | }; |
| 88 | | expect(shouldShowDesktopUpdateButton(state)).toBe(true); |
| 89 | 84 | expect(resolveDesktopUpdateButtonAction(state)).toBe("install"); |
| 90 | 85 | expect(getDesktopUpdateButtonTooltip(state)).toContain("Click to restart and install"); |
| 91 | 86 | }); |
| ... | ... | @@ -111,7 +106,7 @@ describe("desktop update button state", () => { |
| 111 | 106 | expect(resolveDesktopUpdateButtonAction(state)).toBe("none"); |
| 112 | 107 | }); |
| 113 | 108 | |
| 114 | | it("hides the button for non-actionable check errors", () => { |
| 109 | it("has no action for non-actionable check errors", () => { |
| 115 | 110 | const state: DesktopUpdateState = { |
| 116 | 111 | ...baseState, |
| 117 | 112 | status: "error", |
| ... | ... | @@ -119,7 +114,6 @@ describe("desktop update button state", () => { |
| 119 | 114 | errorContext: "check", |
| 120 | 115 | canRetry: true, |
| 121 | 116 | }; |
| 122 | | expect(shouldShowDesktopUpdateButton(state)).toBe(false); |
| 123 | 117 | expect(resolveDesktopUpdateButtonAction(state)).toBe("none"); |
| 124 | 118 | }); |
| 125 | 119 | |
| ... | ... | @@ -130,7 +124,6 @@ describe("desktop update button state", () => { |
| 130 | 124 | availableVersion: "1.1.0", |
| 131 | 125 | downloadPercent: 42.5, |
| 132 | 126 | }; |
| 133 | | expect(shouldShowDesktopUpdateButton(state)).toBe(true); |
| 134 | 127 | expect(isDesktopUpdateButtonDisabled(state)).toBe(true); |
| 135 | 128 | expect(getDesktopUpdateButtonTooltip(state)).toContain("42%"); |
| 136 | 129 | }); |