Conditional rendering testing value of object of forward/backward link#201
Conditional rendering testing value of object of forward/backward link#201jg10-mastodon-social wants to merge 36 commits into
Conversation
9c895fd to
243847e
Compare
| `); | ||
| }); | ||
|
|
||
| it('does not render templates when compareValue indicates that some-value-(lt|lte|gt|gte) is not met (numeric)', async () => { |
There was a problem hiding this comment.
I suspect we might need more tests here, but I'm not sure how to design them.
I designed these as TDD tests - they all fail if the numbers are treated as strings.
There was a problem hiding this comment.
I've now grouped tests, and split out tests specifically of the test method.
I've tried to systematically go through possible combinations of inputs and data, using the it.each approach.
The code is still missing systematic tests of:
- evaluating values of property and rev with multiple relations
- evaluating values of property with multiple strings
- evaluating values of property with multiple numbers
There are ad-hoc tests for this functionality, so given the difficulty in parameterising these combinatorial tests, I suggest we open an issue documenting this gap and merge in the mean time.
Any suggestions are welcome for systematically testing all combinations in the presence of multiple values!
02ee964 to
25f0fef
Compare
25f0fef to
261f92d
Compare
80772f3 to
69f0119
Compare
| and this project adheres to | ||
| [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## 0.30.0 |
There was a problem hiding this comment.
I think this is now 0.30.0, but I may have misunderstood what is in the previous release
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## 0.42.0 |
There was a problem hiding this comment.
@angelo-v Is this correct?
When rebasing on main, it looked like your previous fixes no longer applied given the release in the mean time?
Closes #184