mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten provider validation assertion
This commit is contained in:
@@ -222,7 +222,7 @@ describe("normalizeRegisteredProvider", () => {
|
||||
if (!provider) {
|
||||
throw new Error("expected provider");
|
||||
}
|
||||
expect(provider).toMatchObject({ catalog: { run: expect.any(Function) } });
|
||||
expect(typeof provider.catalog?.run).toBe("function");
|
||||
expect(provider.discovery).toBeUndefined();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user