LLazyEmail / markdown-regex

Set of constants that can help you to parse markdown content
MIT License
10 stars 4 forks source link

FAIL br.test #178

Open Olgalex opened 2 years ago

Olgalex commented 2 years ago

Describe the bug expect (received).toBe(expected) !== object is equality

To Reproduce Go to RegEx: REGEXP_BR

Expected result expect (received).toBe(expected) === object is equality

Actual result expect (received).toBe(expected) !== object is equality https://github.com/LLazyEmail/markdown-regex/blob/main/tests/br/br.test.js

atherdon commented 2 years ago

ok, so <br> related to the break line symbol. it's basically a free space, between the lines.

when our test will eat the whole md file, it must return us at least 3 empty lines.

image


in order to run our rest, lets add content with 2 lines of text and one be inside, as on image image

Olgalex commented 2 years ago

image Can you explane how do i have to add the second line, i mean what is the symbol between two lines?

atherdon commented 2 years ago

если ви хотите птотестировать строку в которой будет находится больше чем одна строка, я бі предложил не пихать єти строки внутрь test('...') а, создать переменную, в нее передать строки и уже переменную использовать внутри.

нужен пример? могу поискать @Olgalex