mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 05:02:04 +03:00
chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -22,9 +22,7 @@ describe("media store", () => {
|
||||
await withTempStore(async (store, home) => {
|
||||
const dir = await store.ensureMediaDir();
|
||||
expect(isPathWithinBase(home, dir)).toBe(true);
|
||||
expect(path.normalize(dir)).toContain(
|
||||
`${path.sep}.clawdbot${path.sep}media`,
|
||||
);
|
||||
expect(path.normalize(dir)).toContain(`${path.sep}.clawdbot${path.sep}media`);
|
||||
const stat = await fs.stat(dir);
|
||||
expect(stat.isDirectory()).toBe(true);
|
||||
});
|
||||
@@ -49,9 +47,7 @@ describe("media store", () => {
|
||||
expect(savedJpeg.path.endsWith(".jpg")).toBe(true);
|
||||
|
||||
const huge = Buffer.alloc(5 * 1024 * 1024 + 1);
|
||||
await expect(store.saveMediaBuffer(huge)).rejects.toThrow(
|
||||
"Media exceeds 5MB limit",
|
||||
);
|
||||
await expect(store.saveMediaBuffer(huge)).rejects.toThrow("Media exceeds 5MB limit");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user