mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 07:40:44 +00:00
* refactor(web-fetch): move readability extraction to plugin * fix(web-fetch): cache extractor resolution by config * fix(test): remove redundant stat assertions
17 lines
426 B
TypeScript
17 lines
426 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolvePluginWebContentExtractors } from "./web-content-extractors.runtime.js";
|
|
|
|
describe("resolvePluginWebContentExtractors", () => {
|
|
it("respects global plugin disablement", () => {
|
|
expect(
|
|
resolvePluginWebContentExtractors({
|
|
config: {
|
|
plugins: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
}),
|
|
).toEqual([]);
|
|
});
|
|
});
|