fix(core): Fix type errors (no-changelog) (#9571)

This commit is contained in:
Danny Martini
2024-05-31 14:06:13 +02:00
committed by GitHub
parent 400c005866
commit 8da0d6e9ba
22 changed files with 30 additions and 42 deletions

View File

@@ -44,7 +44,7 @@ describe('CollaborationService', () => {
workflowId,
};
const expectActiveUsersChangedMessage = (userIds: string[]) => {
const expectActiveUsersChangedMessage = () => {
expect(push.sendToUsers).toHaveBeenCalledWith(
'activeWorkflowUsersChanged',
{
@@ -77,7 +77,7 @@ describe('CollaborationService', () => {
mockUserRepository.getByIds.mockResolvedValueOnce([{ id: userId } as User]);
await collaborationService.handleUserMessage(userId, message);
expectActiveUsersChangedMessage([userId]);
expectActiveUsersChangedMessage();
});
});
@@ -102,7 +102,7 @@ describe('CollaborationService', () => {
mockUserRepository.getByIds.mockResolvedValueOnce([{ id: userId } as User]);
await collaborationService.handleUserMessage(userId, message);
expectActiveUsersChangedMessage([userId]);
expectActiveUsersChangedMessage();
});
});
});