test: keep the Trash link out of a shared Trash without an account id

This commit is contained in:
Linus Rath
2026-10-28 07:39:00 +01:00
parent a6af7bc8f1
commit 61d4e02e38
@@ -79,5 +79,11 @@ describe('TrashRecoveryLink', () => {
cleanup();
const shared = await renderLink({ ...TRASH, accountId: 'ch', isShared: true });
expect(shared.container).toBeEmptyDOMElement();
cleanup();
const sharedNoAccount = await renderLink({ ...TRASH, accountId: undefined, isShared: true });
expect(sharedNoAccount.container).toBeEmptyDOMElement();
cleanup();
const otherAccount = await renderLink({ ...TRASH, accountId: 'ch' });
expect(otherAccount.container).toBeEmptyDOMElement();
});
});