Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ it('posts one not-connected line when a person mentions a BYO agent that never p
});
});

it('posts the line when the owner is the one who mentions it (TASK-722)', async () => {
const posted = await noteNeverConnectedMention({ ...args, senderId: byoInstall.installedBy });

expect(posted).toBe(true);
expect(mockEmitNotConnected).toHaveBeenCalledTimes(1);
expect(mockEmitNotConnected.mock.calls[0][0]).toMatchObject({ agentKey: 'nova:default', messageId: '555' });
});

it('stays silent for a bot sender', async () => {
mockFindUser.mockReturnValue(chain({ isBot: true }));
expect(await noteNeverConnectedMention(args)).toBe(false);
Expand Down
Loading