Pause suspended Reddit accounts
This commit is contained in:
1 parent
94049ed9c4
commit
7d039265e7
21 files changed
+368
-26
No files matched your search
@@ -95,6 +95,17 @@ describe('multi-account database ownership', () => {
|
||||
expect(accounts.get('t2_bob')).toMatchObject({ status: 'disabled', isActive: false, updatedAt: 130 });
|
||||
});
|
||||
|
||||
it('durably pauses a suspended account without destroying its session or history', () => {
|
||||
addAccount('t2_alice', 'alice-bot', 100);
|
||||
|
||||
expect(accounts.markSuspended('t2_alice', 200)).toBe(true);
|
||||
expect(accounts.get('t2_alice')).toMatchObject({
|
||||
status: 'suspended', isActive: false, updatedAt: 200,
|
||||
cookiesJson: expect.stringContaining('alice-bot-secret'),
|
||||
});
|
||||
expect(accounts.getActive()).toEqual([]);
|
||||
});
|
||||
|
||||
it('partitions conversations, sync state and media even when remote IDs match', () => {
|
||||
addAccount('t2_alice', 'alice-bot', 100);
|
||||
addAccount('t2_bob', 'bob-bot', 110);
|
||||
|
||||
Reference in new issue
Block a user