The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/message-parser/tests/any.test.ts

13 lines
454 B

import { parse } from '../src';
import { paragraph, plain } from '../src/utils';
test.each([
['free text', [paragraph([plain('free text')])]],
['free text, with comma', [paragraph([plain('free text, with comma')])]],
[
'free text with unxpected/unfinished blocks *bold_',
[paragraph([plain('free text with unxpected/unfinished blocks *bold_')])],
],
])('parses %p', (input, output) => {
expect(parse(input)).toMatchObject(output);
});