Skip to content

Commit 1b6b961

Browse files
committed
fix test
1 parent 4e2e89f commit 1b6b961

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/AgentActionTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ describe('deleteAgent', () => {
428428
expect((personalDetailUpdate?.value as Record<string, unknown>)[TEST_ACCOUNT_ID]).toBeNull();
429429
});
430430

431-
it('failure data merges pendingAction DELETE and errors on the prompt key', () => {
431+
it('failure data clears the pendingAction and merges errors on the prompt key', () => {
432432
deleteAgent(TEST_ACCOUNT_ID);
433433

434434
const {failureData} = getWriteOptions();
435435
const promptUpdate = failureData.find((u) => u.key === `${ONYXKEYS.COLLECTION.SHARED_NVP_AGENT_PROMPT}${TEST_ACCOUNT_ID}`);
436436

437437
expect(promptUpdate?.onyxMethod).toBe('merge');
438-
expect(promptUpdate?.value).toMatchObject({pendingAction: 'delete'});
438+
expect(promptUpdate?.value).toMatchObject({pendingAction: null});
439439
expect((promptUpdate?.value as Record<string, unknown>)?.errors).toBeTruthy();
440440
});
441441

0 commit comments

Comments
 (0)