fix(FN-1567): fix plugin loader type and ntfy events test
- Fix ConstructorParameters type in plugin loader - Update ntfy events test to expect awaiting-user-review event
This commit is contained in:
@@ -55,7 +55,7 @@ async function createPluginLoader(
|
||||
getFusionDir: () => projectPath + "/.fusion",
|
||||
on: () => {},
|
||||
off: () => {},
|
||||
} as unknown as Parameters<typeof PluginLoader>[0]["taskStore"];
|
||||
} as unknown as ConstructorParameters<typeof PluginLoader>[0]["taskStore"];
|
||||
|
||||
const loader = new PluginLoader({
|
||||
pluginStore,
|
||||
|
||||
@@ -1843,7 +1843,7 @@ describe("SettingsModal", () => {
|
||||
await waitFor(() => expect(updateGlobalSettings).toHaveBeenCalledTimes(1));
|
||||
|
||||
const payload = (updateGlobalSettings as ReturnType<typeof vi.fn>).mock.calls[0][0];
|
||||
expect(payload.ntfyEvents).toEqual(["in-review", "failed", "awaiting-approval"]);
|
||||
expect(payload.ntfyEvents).toEqual(["in-review", "failed", "awaiting-approval", "awaiting-user-review"]);
|
||||
});
|
||||
|
||||
it("sets ntfyEvents to undefined when all checkboxes are unchecked", async () => {
|
||||
|
||||
Reference in New Issue
Block a user