chore: purge warelay references

This commit is contained in:
Peter Steinberger
2025-12-07 03:36:46 +00:00
parent 21dfbd0103
commit 6c3d3b98b8
26 changed files with 83 additions and 93 deletions

View File

@@ -5,7 +5,7 @@ import { PassThrough } from "node:stream";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
const realOs = await vi.importActual<typeof import("node:os")>("node:os");
const HOME = path.join(realOs.tmpdir(), "warelay-home-redirect");
const HOME = path.join(realOs.tmpdir(), "clawdis-home-redirect");
const mockRequest = vi.fn();
vi.doMock("node:os", () => ({

View File

@@ -4,7 +4,7 @@ import sharp from "sharp";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
const realOs = await vi.importActual<typeof import("node:os")>("node:os");
const HOME = path.join(realOs.tmpdir(), "warelay-home-test");
const HOME = path.join(realOs.tmpdir(), "clawdis-home-test");
vi.mock("node:os", () => ({
default: { homedir: () => HOME, tmpdir: () => realOs.tmpdir() },
@@ -25,7 +25,7 @@ describe("media store", () => {
it("creates and returns media directory", async () => {
const dir = await store.ensureMediaDir();
expect(dir).toContain("warelay-home-test");
expect(dir).toContain("clawdis-home-test");
const stat = await fs.stat(dir);
expect(stat.isDirectory()).toBe(true);
});