mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
closes: CORE-32 - The match helper is a very logical helper, designed to support many many type of comparison - The existing test pattern had gotten long and unweildy already and I'd barely scratched the surface - Introduce a new pattern, that allows for very quickly and easily describing template strings and what their evaluation should be - This quickly highlights how many broken cases there are right now! Notes: - I could have condensed the pattern further with test groups and iterating over to create describe blocks - I feel the current implementation is the right balance between condensed and legible to make this maintainable - I could also have used the same pattern for the block helper, but at that point I felt it more important that the logic I was testing was clear, rather than condensed |
||
---|---|---|
.. | ||
api-acceptance | ||
frontend-acceptance | ||
regression | ||
unit | ||
utils | ||
.eslintignore | ||
.eslintrc.js | ||
.jshintrc |