mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-05 00:14:18 +00:00
test: keep the Trash link out of a shared Trash without an account id
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user