Page MenuHomePhabricator

added tests to check spoiler regex extracted values
ClosedPublic

Authored by manan on Oct 25 2022, 7:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 9:29 AM
Unknown Object (File)
Sat, Oct 26, 5:23 PM
Unknown Object (File)
Oct 15 2024, 5:22 PM
Unknown Object (File)
Oct 10 2024, 6:56 AM
Unknown Object (File)
Oct 10 2024, 6:56 AM
Unknown Object (File)
Oct 10 2024, 6:56 AM
Unknown Object (File)
Oct 10 2024, 6:55 AM
Unknown Object (File)
Oct 10 2024, 6:54 AM

Details

Summary

added a few tests to make sure the spoiler regex is actually
extracting the correct spoiler text.

Test Plan

tested manually by hand

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested changes to this revision.Oct 26 2022, 7:37 AM
ginsu added inline comments.
lib/shared/markdown.test.js
56 ↗(On Diff #17915)

we should be using const. Here is more context

This revision now requires changes to proceed.Oct 26 2022, 7:37 AM
lib/shared/markdown.test.js
56 ↗(On Diff #17915)

It's surprising that eslint haven't caught that. Maybe we don't have no-var rule enabled. Could you create a task to check and add the rule?

  1. Updating D5483: added tests to check spoiler regex extracted values #
  2. Enter a brief description of the changes included in this update.
  3. The first line is used as subject, next lines as comment. #
  4. If you intended to create a new revision, use:
  5. $ arc diff --create

fixed var variable declarations - changed to const.

Looks good, thanks for taking the suggestion from the other diff!

This revision is now accepted and ready to land.Oct 28 2022, 6:57 AM