mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 12:03:23 +00:00
parent
b1fb910625
commit
bf9a415541
5 changed files with 155 additions and 150 deletions
|
|
@ -17,7 +17,7 @@ vi.mock("child_process", () => {
|
|||
};
|
||||
});
|
||||
|
||||
vi.mock("@crosscopy/clipboard", () => {
|
||||
vi.mock("@mariozechner/clipboard", () => {
|
||||
return {
|
||||
default: mocks.clipboard,
|
||||
};
|
||||
|
|
@ -54,7 +54,7 @@ describe("readClipboardImage", () => {
|
|||
mocks.clipboard.getImageBinary.mockReset();
|
||||
});
|
||||
|
||||
test("Wayland: uses wl-paste and never calls @crosscopy/clipboard", async () => {
|
||||
test("Wayland: uses wl-paste and never calls @mariozechner/clipboard", async () => {
|
||||
mocks.clipboard.hasImage.mockImplementation(() => {
|
||||
throw new Error("clipboard.hasImage should not be called on Wayland");
|
||||
});
|
||||
|
|
@ -107,7 +107,7 @@ describe("readClipboardImage", () => {
|
|||
expect(Array.from(result?.bytes ?? [])).toEqual([9, 8]);
|
||||
});
|
||||
|
||||
test("Non-Wayland: uses @crosscopy/clipboard", async () => {
|
||||
test("Non-Wayland: uses @mariozechner/clipboard", async () => {
|
||||
mocks.spawnSync.mockImplementation(() => {
|
||||
throw new Error("spawnSync should not be called for non-Wayland sessions");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue