Skip to content
Snippets Groups Projects
Commit c1b60d29 authored by Stephanie Freitag's avatar Stephanie Freitag
Browse files

NOISSUE: add test for updating unknown workflows

parent e8c1a51e
No related branches found
No related tags found
No related merge requests found
...@@ -428,6 +428,21 @@ describe("novu", () => { ...@@ -428,6 +428,21 @@ describe("novu", () => {
}); });
}); });
it("does nothing for unknown workflows", async () => {
novuGlobalPreferenceStub = stubNovuGlobalPreferences();
novuPreferenceStub = stubNovuWorkflowPreferences();
novuUpdateGlobalPreferenceStub = stubNovuUpdateGlobalPreferences();
novuUpdatePreferenceStub = stubNovuUpdateWorkflowPreferences();
await updatePreferences(novuMock, subscriberId, {
...globalUpdate,
id: "UNKNOWN",
});
assertSpyCalls(novuUpdateGlobalPreferenceStub, 0);
assertSpyCalls(novuUpdatePreferenceStub, 0);
});
it("returns aggregation of updated preferences", async () => { it("returns aggregation of updated preferences", async () => {
const expectedPreferences = [ const expectedPreferences = [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment