Skip to content

Commit c00f1bb

Browse files
committed
fixed test
1 parent 7270872 commit c00f1bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui/MessageInput/__tests__/MessageInput.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('ui/MessageInput', () => {
172172
expect(input.textContent).toBe(mockText);
173173

174174
fireEvent.keyDown(input, { key: 'Enter' });
175-
expect(onSendMessage).toHaveBeenCalledWith({ mentionTemplate: mockText, message: mockText });
175+
expect(onSendMessage).toHaveBeenCalledWith({ mentionTemplate: '', message: mockText });
176176
});
177177

178178
it('should call sendMessage with valid string; new lines included', async () => {
@@ -187,7 +187,7 @@ describe('ui/MessageInput', () => {
187187
expect(input.textContent).toBe(mockText);
188188

189189
fireEvent.keyDown(input, { key: 'Enter' });
190-
expect(onSendMessage).toHaveBeenCalledWith({ mentionTemplate: mockText, message: mockText });
190+
expect(onSendMessage).toHaveBeenCalledWith({ mentionTemplate: '', message: mockText });
191191
});
192192

193193
it('should not call sendMessage with invalid string; only white spaces', async() => {
@@ -202,7 +202,7 @@ describe('ui/MessageInput', () => {
202202
expect(input.textContent).toBe(mockText);
203203

204204
fireEvent.keyDown(input, { key: 'Enter' });
205-
expect(onSendMessage).not.toHaveBeenCalledWith({ mentionTemplate: mockText, message: mockText });
205+
expect(onSendMessage).not.toHaveBeenCalledWith({ mentionTemplate: '', message: mockText });
206206
});
207207

208208
it('should render send icon if text is present', async() => {

0 commit comments

Comments
 (0)