Skip to content

Commit bca29ea

Browse files
fix(test): compare connector identifiers exactly
1 parent 2369193 commit bca29ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/lib/knowledge/orchestration/connectors.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,10 @@ describe('members-mode connectors', () => {
13961396
expect(mockDispatchMemberSync).not.toHaveBeenCalled()
13971397
expect(mockRecordAudit).not.toHaveBeenCalled()
13981398
expect(mockRevoke).toHaveBeenCalledWith(
1399-
expect.objectContaining({ connectorId: expect.not.stringMatching(MEMBERS_CONNECTOR.id) }),
1399+
expect.objectContaining({ connectorId: expect.any(String) }),
14001400
ACTOR.userId
14011401
)
1402+
expect(mockRevoke.mock.calls[0][0].connectorId).not.toBe(MEMBERS_CONNECTOR.id)
14021403
})
14031404

14041405
it('does not reuse matching settings bound to a different account option', async () => {

0 commit comments

Comments
 (0)