Skip to content

Commit bc6c068

Browse files
committed
Add a test
1 parent ad64c4f commit bc6c068

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

api/stately/item-annotations-queries.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,24 @@ it('can update tags clearing value', async () => {
7979
});
8080
});
8181

82+
it('can create tags while passing null notes', async () => {
83+
await client.transaction(async (txn) => {
84+
await updateItemAnnotation(txn, platformMembershipId, 2, [
85+
{
86+
id: '123456',
87+
tag: 'favorite',
88+
notes: null,
89+
},
90+
]);
91+
});
92+
93+
const annotations = (await getItemAnnotationsForProfile(platformMembershipId, 2)).tags;
94+
expect(annotations[0]).toEqual({
95+
id: '123456',
96+
tag: 'favorite',
97+
});
98+
});
99+
82100
it('can delete tags', async () => {
83101
await client.transaction(async (txn) => {
84102
await updateItemAnnotation(txn, platformMembershipId, 2, [

0 commit comments

Comments
 (0)