Blocking someone removes notifications between you
Also note in the CI guide that the build caches need disk space where Docker keeps its data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,13 @@ describe('notifications', () => {
|
||||
expect((await inbox(bob.token)).unread).toBe(0);
|
||||
});
|
||||
|
||||
it('blocking removes notifications between the two', async () => {
|
||||
const { alice } = await setup();
|
||||
expect((await inbox(alice.token)).notifications).toHaveLength(1);
|
||||
await app().inject({ method: 'POST', url: '/users/bob/block', headers: bearer(alice.token), payload: {} });
|
||||
expect((await inbox(alice.token)).notifications).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('saves notification settings', async () => {
|
||||
const { alice } = await setup();
|
||||
const me = (await app().inject({ method: 'PATCH', url: '/me', headers: bearer(alice.token), payload: { notifyPrefs: { follow: false } } })).json();
|
||||
|
||||
Reference in New Issue
Block a user