message: fix(message-parser): tests for urls followed by a line break and spaces
diff: import { parse } from '../src';
  -import { link, paragraph, plain } from '../src/utils';
  +import { lineBreak, link, paragraph, plain } from '../src/utils';
  test.each([
  [
  @@ -16,6 +16,14 @@ test.each([
  'https://pt.wikipedia.org/',
  [paragraph([link('https://pt.wikipedia.org/')])],
  ],
  + [
  + 'https://pt.wikipedia.org/with-hyphen',
  + [paragraph([link('https://pt.wikipedia.org/with-hyphen')])],
  + ],
  + [
  + 'https://pt.wikipedia.org/with_underscore',
  + [paragraph([link('https://pt.wikipedia.org/with_underscore')])],
  + ],
  [
  'https://www.npmjs.com/package/@rocket.chat/message-parser',
  [
  @@ -115,6 +123,68 @@ test.each([
  ]),
  ],
  ],
  + [
  + 'https://developer.rocket.chat?query=query\nline break',
  + [
  + paragraph([link('https://developer.rocket.chat?query=query')]),
  + paragraph([plain('line break')]),
  + ],
  + ],
  + [
  + 'https://developer.rocket.chat?query=query\n\nline break',
  + [
  + paragraph([link('https://developer.rocket.chat?query=query')]),
  + lineBreak(),
  + paragraph([plain('line break')]),
  + ],
  + ],
  + [
  + 'https://developer.rocket.chat?query=query_with_underscore look at this',
  + [
  + paragraph([
  + link('https://developer.rocket.chat?query=query_with_underscore'),
  + plain(' look at this'),
  + ]),
  + ],
  + ],
  + [
  + 'https://developer.rocket.chat/path_with_underscore look at this',
  + [
  + paragraph([
  + link('https://developer.rocket.chat/path_with_underscore'),
  + plain(' look at this'),
  + ]),
  + ],
  + ],
  + [
  + 'https://developer.rocket.chat#fragment_with_underscore look at this',
  + [
  + paragraph([
  + link('https://developer.rocket.chat#fragment_with_underscore'),
  + plain(' look at this'),
  + ]),
  + ],
  + ],
  + [
  + 'https://developer.rocket.chat followed by text',
  + [
  + paragraph([
  + link('https://developer.rocket.chat'),
  + plain(' followed by text'),
  + ]),
  + ],
  + ],
  + [
  + 'two urls https://developer.rocket.chat , https://rocket.chat',
  + [
  + paragraph([
  + plain('two urls '),
  + link('https://developer.rocket.chat'),
  + plain(' , '),
  + link('https://rocket.chat'),
  + ]),
  + ],
  + ],
  ])('parses %p', (input, output) => {
  expect(parse(input)).toMatchObject(output);
  });
  