mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
@@ -8,4 +8,12 @@ describe MessageFormatHelper, type: :helper do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#render_message_content' do
|
||||
context 'when render_message_content called' do
|
||||
it 'render text correctly' do
|
||||
expect(helper.render_message_content('Hi *there*, I am mostly text!')).to eq "<p>Hi <em>there</em>, I am mostly text!</p>\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user