https://github.com/caolan/magery-tests
Test suite for server implementations of Magery templates
https://github.com/caolan/magery-tests
Last synced: 5 months ago
JSON representation
Test suite for server implementations of Magery templates
- Host: GitHub
- URL: https://github.com/caolan/magery-tests
- Owner: caolan
- Created: 2016-05-30T19:34:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T01:57:23.000Z (over 7 years ago)
- Last Synced: 2025-02-13T16:46:13.678Z (over 1 year ago)
- Language: HTML
- Size: 149 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Server-side rendering tests for [Magery][magery] templates.
For each test in `components`, load `*/template.html` and render the
'app-main' component using `*/data.json` as the context data. Check
the result against `*/expected.html`.
In certain occasion, the case is an error case. Implementation of Magery should
produce an error message (in the normal way) for this cases. The test suite provide
a proposition of error message, it is not required to match the exact message.
When using these tests as a guide for your own implementation I
suggest setting your test runner to execute the tests in order (they
generally go from simple to complex) and exit on first error.
[magery]: https://github.com/caolan/magery