Switch to double quotes and reformat codebase with Biome

This commit is contained in:
Mohamed Boudra
2026-03-21 20:22:15 +07:00
parent ab40786882
commit f6579dbeb4
805 changed files with 38132 additions and 40175 deletions
+6 -14
View File
@@ -94,9 +94,7 @@ describe("confirmDialog", () => {
expect(confirmed).toBe(true);
expect(blurMock).toHaveBeenCalledTimes(1);
expect(browserConfirm).toHaveBeenCalledWith(
"Restart host\n\nThis will restart the daemon."
);
expect(browserConfirm).toHaveBeenCalledWith("Restart host\n\nThis will restart the daemon.");
});
it("throws on web when no confirm backend exists", async () => {
@@ -106,22 +104,16 @@ describe("confirmDialog", () => {
confirmDialog({
title: "Restart host",
message: "This will restart the daemon.",
})
}),
).rejects.toThrow("[ConfirmDialog] No web confirmation backend is available.");
});
it("uses native Alert on iOS/Android", async () => {
const { confirmDialog, alertMock } = await loadModuleForPlatform("ios");
alertMock.mockImplementation(
(
_title: string,
_message: string,
buttons?: AlertButton[]
) => {
const confirmButton = buttons?.[1];
confirmButton?.onPress?.();
}
);
alertMock.mockImplementation((_title: string, _message: string, buttons?: AlertButton[]) => {
const confirmButton = buttons?.[1];
confirmButton?.onPress?.();
});
const confirmed = await confirmDialog({
title: "Restart host",