Page MenuHomePhabricator

[lib] Add unit tests for chat mention regex
ClosedPublic

Authored by patryk on Aug 31 2023, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 2:04 PM
Unknown Object (File)
Thu, Oct 24, 5:37 AM
Unknown Object (File)
Thu, Oct 17, 9:32 PM
Unknown Object (File)
Sep 27 2024, 6:28 PM
Unknown Object (File)
Sep 27 2024, 6:28 PM
Unknown Object (File)
Sep 27 2024, 6:28 PM
Unknown Object (File)
Sep 27 2024, 6:27 PM
Unknown Object (File)
Sep 27 2024, 6:27 PM
Subscribers

Details

Summary

This diff adds chat mention regex unit tests to markdown.test.js.

Depends on D8834.

Test Plan

Run yarn test in lib folder and check if all tests pass.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka, rohan.
patryk edited the summary of this revision. (Show Details)

Thanks for doing this!! Tests look great. I think outside of this file the pattern is to typically use it('should...), but I don't think it's a big deal

lib/shared/markdown.test.js
120
124
This revision is now accepted and ready to land.Sep 1 2023, 7:24 AM