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)
Fri, Sep 6, 5:14 PM
Unknown Object (File)
Fri, Sep 6, 4:28 PM
Unknown Object (File)
Fri, Sep 6, 11:18 AM
Unknown Object (File)
Thu, Sep 5, 11:03 AM
Unknown Object (File)
Thu, Sep 5, 10:19 AM
Unknown Object (File)
Thu, Sep 5, 9:12 AM
Unknown Object (File)
Tue, Aug 27, 2:41 PM
Unknown Object (File)
Fri, Aug 23, 4:08 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #30689)
124 ↗(On Diff #30689)
This revision is now accepted and ready to land.Sep 1 2023, 7:24 AM