authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-05 00:12:43-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-05 00:12:43-07:00
loga9caf7b7089afb6f1b3b888ea404b75b8f9e88e1
tree4d75c931429f440ff28572d4c219e8e02ee97161
parent14da634577773d291c494635c1a4bcdb0e70f9ee
signature Signed by PGP key B5690EEEBB952194

refactor(desktop): remove test-only Electron error predicates (#9982)


8 files changed, 0 insertions(+), 12 deletions(-)

apps/desktop/src/electron/ElectronDialog.test.ts-1
......@@ -43,7 +43,6 @@ describe("ElectronDialog", () => {
4343 );
4444
4545 assert.instanceOf(error, ElectronDialog.ElectronDialogPickFolderError);
46 assert.isTrue(ElectronDialog.isElectronDialogError(error));
4746 assert.strictEqual(error.ownerWindowId, 7);
4847 assert.strictEqual(error.defaultPath, "/workspace");
4948 assert.strictEqual(error.cause, cause);
apps/desktop/src/electron/ElectronDialog.ts-1
......@@ -73,7 +73,6 @@ export const ElectronDialogError = Schema.Union([
7373 ElectronDialogShowErrorBoxError,
7474]);
7575export type ElectronDialogError = typeof ElectronDialogError.Type;
76export const isElectronDialogError = Schema.is(ElectronDialogError);
7776
7877export interface ElectronDialogPickFolderInput {
7978 readonly owner: Option.Option<Electron.BrowserWindow>;
apps/desktop/src/electron/ElectronTheme.test.ts-1
......@@ -64,7 +64,6 @@ describe("ElectronTheme", () => {
6464 const error = yield* Effect.flip(electronTheme.setSource("dark"));
6565
6666 assert.instanceOf(error, ElectronTheme.ElectronThemeSetSourceError);
67 assert.isTrue(ElectronTheme.isElectronThemeSetSourceError(error));
6867 assert.strictEqual(error.source, "dark");
6968 assert.strictEqual(error.cause, cause);
7069 assert.include(error.message, "dark");
apps/desktop/src/electron/ElectronTheme.ts-2
......@@ -19,8 +19,6 @@ export class ElectronThemeSetSourceError extends Schema.TaggedErrorClass<Electro
1919 }
2020}
2121
22export const isElectronThemeSetSourceError = Schema.is(ElectronThemeSetSourceError);
23
2422export class ElectronTheme extends Context.Service<
2523 ElectronTheme,
2624 {
apps/desktop/src/electron/ElectronUpdater.test.ts-3
......@@ -71,7 +71,6 @@ describe("ElectronUpdater", () => {
7171 const error = yield* updater.checkForUpdates.pipe(Effect.flip);
7272
7373 assert.instanceOf(error, ElectronUpdater.ElectronUpdaterCheckForUpdatesError);
74 assert.isTrue(ElectronUpdater.isElectronUpdaterError(error));
7574 assert.equal(error.channel, "beta");
7675 assert.strictEqual(error.cause, cause);
7776 assert.equal(error.message, "Electron updater failed to check for updates on channel beta.");
......@@ -89,7 +88,6 @@ describe("ElectronUpdater", () => {
8988 const error = yield* updater.downloadUpdate.pipe(Effect.flip);
9089
9190 assert.instanceOf(error, ElectronUpdater.ElectronUpdaterDownloadUpdateError);
92 assert.isTrue(ElectronUpdater.isElectronUpdaterError(error));
9391 assert.equal(error.channel, "nightly");
9492 assert.strictEqual(error.cause, cause);
9593 assert.equal(
......@@ -126,7 +124,6 @@ describe("ElectronUpdater", () => {
126124 .pipe(Effect.flip);
127125
128126 assert.instanceOf(error, ElectronUpdater.ElectronUpdaterQuitAndInstallError);
129 assert.isTrue(ElectronUpdater.isElectronUpdaterError(error));
130127 assert.equal(error.channel, "alpha");
131128 assert.equal(error.isSilent, true);
132129 assert.equal(error.isForceRunAfter, false);
apps/desktop/src/electron/ElectronUpdater.ts-1
......@@ -54,7 +54,6 @@ export const ElectronUpdaterError = Schema.Union([
5454 ElectronUpdaterQuitAndInstallError,
5555]);
5656export type ElectronUpdaterError = typeof ElectronUpdaterError.Type;
57export const isElectronUpdaterError = Schema.is(ElectronUpdaterError);
5857
5958export class ElectronUpdater extends Context.Service<
6059 ElectronUpdater,
apps/desktop/src/electron/ElectronWindow.test.ts-1
......@@ -79,7 +79,6 @@ describe("ElectronWindow", () => {
7979 const error = yield* electronWindow.create(options).pipe(Effect.flip);
8080
8181 assert.instanceOf(error, ElectronWindow.ElectronWindowCreateError);
82 assert.isTrue(ElectronWindow.isElectronWindowCreateError(error));
8382 assert.deepEqual(error.options, {
8483 title: "T3 Code",
8584 width: 1100,
apps/desktop/src/electron/ElectronWindow.ts-2
......@@ -58,8 +58,6 @@ export class ElectronWindowCreateError extends Schema.TaggedErrorClass<ElectronW
5858 }
5959}
6060
61export const isElectronWindowCreateError = Schema.is(ElectronWindowCreateError);
62
6361export class ElectronWindowOperationError extends Schema.TaggedErrorClass<ElectronWindowOperationError>()(
6462 "ElectronWindowOperationError",
6563 {