Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAIL br.test #178

Open
Olgalex opened this issue Aug 1, 2022 · 3 comments
Open

FAIL br.test #178

Olgalex opened this issue Aug 1, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Olgalex
Copy link
Collaborator

Olgalex commented Aug 1, 2022

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

@Olgalex Olgalex added the bug Something isn't working label Aug 1, 2022
@Olgalex Olgalex changed the title br.test FAIL br.test Aug 17, 2022
@atherdon
Copy link
Collaborator

atherdon commented Aug 20, 2022

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
Copy link
Collaborator Author

Olgalex commented Aug 21, 2022

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

@atherdon
Copy link
Collaborator

atherdon commented Sep 5, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants