fable-compiler / Fable.Lit

Write Fable Elmish apps with Lit
https://fable.io/Fable.Lit/
MIT License
91 stars 13 forks source link

Add LitElement Tests #11

Closed AngelMunoz closed 2 years ago

AngelMunoz commented 2 years ago

I'm not sure my hook tests are that great but they are there I'm missing useCancellationToken I don't know how to test that one.

Added LitElement Tests regarding properties at least the basic cases reacting to property/attribute changes, reflecting changes and ignoring attributes

If we can add what other tests we're missing in an issue it would be great I will try to check those

alfonsogarciacaro commented 2 years ago

This is great @AngelMunoz, thanks a lot! Actually, I added useCancellationToken at the beginning from Feliz because it was used by useElmish. But it's not the case anymore, so maybe we can remove it. Users can implement it by themselves if necessary.