feat/ci-tests (#97)

This commit is contained in:
dswbx
2025-02-26 17:15:51 +01:00
committed by GitHub
parent 253174c14e
commit b6d28bbf42
7 changed files with 46 additions and 13 deletions

View File

@@ -1,13 +1,14 @@
import { describe, expect, test } from "bun:test";
import { randomString } from "../../../src/core/utils";
import { StorageLocalAdapter } from "../../../src/media/storage/adapters/StorageLocalAdapter";
import { assetsPath, assetsTmpPath } from "../../helper";
describe("StorageLocalAdapter", () => {
const adapter = new StorageLocalAdapter({
path: `${import.meta.dir}/local`
path: assetsTmpPath
});
const file = Bun.file(`${import.meta.dir}/icon.png`);
const file = Bun.file(`${assetsPath}/image.png`);
const _filename = randomString(10);
const filename = `${_filename}.png`;