diff --git a/web/src/lib/taskWrites.test.ts b/web/src/lib/taskWrites.test.ts index 74837ae..59191b1 100644 --- a/web/src/lib/taskWrites.test.ts +++ b/web/src/lib/taskWrites.test.ts @@ -271,7 +271,8 @@ describe('createTask', () => { it('links the tags of the account, each once, whatever the letter case of their ids', async () => { const A = await newAccount(); const [red, blue] = [await newTag(A.userId), await newTag(A.userId)]; - const { task } = await create(A.userId, { title: 'Tagged', tagIds: [red, blue.toUpperCase(), red] }); + // Twice the same id, and the same id in both letter cases: one tag each. + const { task } = await create(A.userId, { title: 'Tagged', tagIds: [red, blue.toUpperCase(), red, blue] }); expect(await tagsOf(task.id)).toEqual([red, blue].sort()); // An empty list links nothing. expect(await tagsOf((await create(A.userId, { title: 'Bare', tagIds: [] })).task.id)).toEqual([]); @@ -436,7 +437,7 @@ describe('setTaskTags', () => { await link(id, blue); const before = await everything(); - for (const tagIds of [[red, blue], [blue, red], [blue, red.toUpperCase(), blue]]) { + for (const tagIds of [[red, blue], [blue, red], [blue, red.toUpperCase(), blue, red]]) { expect(await setTags(A.userId, id, tagIds)).toMatchObject({ changed: false, task: { id, updatedAt: new Date(SEEDED) } }); } expect(await setTags(A.userId, bareTask, [])).toMatchObject({ changed: false, task: { id: bareTask } });