chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.27k stars 84 forks source link

Add html macro open tag parse tag #198

Closed chinedufn closed 6 months ago

chinedufn commented 6 months ago

This commit adds a test to the html-macro.

The test verifies that we parse opening tags correctly, such as

<div id="hello">

This test was introduced to help others understand how to test the macro's internals. Being able to test the more complex aspects of the macro's internals helps with getting quicker feedback when working on the internals.