test(UserStore): update with 100.00% code coverage

This commit is contained in:
P. Reis 2024-05-10 18:20:00 -03:00
parent 4fdf15761c
commit 732cb45b1e
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ Deno.test('query events of users that are not muted', async () => {
await store.event(event1authorUserMeCopy); await store.event(event1authorUserMeCopy);
assertEquals(await store.query([{ kinds: [1] }], { limit: 1 }), []); assertEquals(await store.query([{ kinds: [1] }], { limit: 1 }), []);
assertEquals(await store.isMuted(userMeCopy.pubkey), true);
}); });
Deno.test('user never muted anyone', async () => { Deno.test('user never muted anyone', async () => {
@ -38,5 +37,5 @@ Deno.test('user never muted anyone', async () => {
await store.event(userBlackCopy); await store.event(userBlackCopy);
await store.event(userMeCopy); await store.event(userMeCopy);
assertEquals(await store.isMuted(userMeCopy.pubkey), false); assertEquals(await store.query([{ kinds: [0], authors: [userMeCopy.pubkey] }], { limit: 1 }), [userMeCopy]);
}); });