[#446] removed direct state update (#468)

This commit is contained in:
Camille Moussu
2026-01-21 15:17:49 +01:00
committed by GitHub
parent 23d50f250d
commit 00742119be
38 changed files with 119 additions and 1366 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ describe("findCalendarById", () => {
expect(result).toBeUndefined();
});
it("should prioritize main list over temp list", () => {
it("should prioritize temp list over main list", () => {
const stateWithDuplicate = {
calendars: {
list: {
@@ -73,8 +73,8 @@ describe("findCalendarById", () => {
const result = findCalendarById(stateWithDuplicate, "dup1");
expect(result?.calendar).toEqual(mockCalendar1);
expect(result?.type).toBeUndefined();
expect(result?.calendar).toEqual(mockTempCalendar);
expect(result?.type).toBe("temp");
});
it("should handle undefined list or templist", () => {