Buckets:
| import { describe, expect, test } from "bun:test" | |
| import { updaterAction } from "./updater-action" | |
| describe("updaterAction", () => { | |
| test("disables update actions when the platform has no updater", () => { | |
| expect(updaterAction(undefined)).toEqual({ label: "settings.updates.action.checkNow" }) | |
| }) | |
| test("projects updater transitions into one settings action", () => { | |
| expect(updaterAction({ status: "idle" })).toEqual({ | |
| label: "settings.updates.action.checkNow", | |
| run: "check", | |
| }) | |
| expect(updaterAction({ status: "checking" })).toEqual({ label: "settings.updates.action.checking" }) | |
| expect(updaterAction({ status: "downloading", version: "2.0.0" })).toEqual({ | |
| label: "settings.updates.action.downloading", | |
| }) | |
| expect(updaterAction({ status: "ready", version: "2.0.0" })).toEqual({ | |
| label: "toast.update.action.installRestart", | |
| run: "install", | |
| }) | |
| expect(updaterAction({ status: "installing", version: "2.0.0" })).toEqual({ | |
| label: "settings.updates.action.installing", | |
| }) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- 956aa85a1e6286715288450e2aa73c048b2dfd34137df1461976a1af89fd7516
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.