mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:00:42 +00:00
* refactor(pdf): move document extraction to plugin * fix(deps): sync document extract lockfile * fix(pdf): harden document extraction plugin
29 lines
660 B
TypeScript
29 lines
660 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolvePluginDocumentExtractors } from "./document-extractors.runtime.js";
|
|
|
|
describe("resolvePluginDocumentExtractors", () => {
|
|
it("respects global plugin disablement", () => {
|
|
expect(
|
|
resolvePluginDocumentExtractors({
|
|
config: {
|
|
plugins: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
}),
|
|
).toEqual([]);
|
|
});
|
|
|
|
it("does not expand an operator plugin allowlist", () => {
|
|
expect(
|
|
resolvePluginDocumentExtractors({
|
|
config: {
|
|
plugins: {
|
|
allow: ["openai"],
|
|
},
|
|
},
|
|
}),
|
|
).toEqual([]);
|
|
});
|
|
});
|