chinedufn / percy

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

Add html macro open tag parse tag #198

Closed chinedufn closed 1 month ago

chinedufn commented 1 month 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.