mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { describe, it, expect, beforeAll } from "bun:test";
|
|
import { type App, createApp } from "core/test/utils";
|
|
import { getSystemMcp } from "modules/mcp/system-mcp";
|
|
import { registries } from "index";
|
|
import { StorageLocalAdapter } from "adapter/node/storage/StorageLocalAdapter";
|
|
|
|
/**
|
|
* - [ ] config_media_get
|
|
* - [ ] config_media_update
|
|
* - [ ] config_media_adapter_get
|
|
* - [ ] config_media_adapter_update
|
|
*/
|
|
describe("mcp media", async () => {
|
|
let app: App;
|
|
let server: ReturnType<typeof getSystemMcp>;
|
|
beforeAll(async () => {
|
|
registries.media.register("local", StorageLocalAdapter);
|
|
app = createApp({
|
|
initialConfig: {
|
|
media: {
|
|
enabled: true,
|
|
adapter: {
|
|
type: "local",
|
|
config: {
|
|
path: "./",
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
mcp: {
|
|
enabled: true,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
await app.build();
|
|
server = getSystemMcp(app);
|
|
});
|
|
});
|