Mentioned in D7567. Adds validators to the message spec and uses them in tests.
Details
Details
- Reviewers
kamil tomek - Commits
- rCOMMce72e5f71c1f: [lib] Add validator to the message spec
Run yarn jest
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/types/validation.test.js | ||
---|---|---|
308–314 ↗ | (On Diff #26058) | Why do we need this condition? |
lib/types/validation.test.js | ||
---|---|---|
308–314 ↗ | (On Diff #26058) | IMAGES and MULTIMEDIA message types have the same multimediaMessageSpec message spec, so they have the same validator (which is a union of images validator and multimedia validator). So they accept each other. |