warriordog/mooltipage

Tests for invalid usage of custom nodes

Aperta

#6 aperta il 10 ago 2020

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (4 fork)auto 404
good first issuetests

Metriche repository

Star
 (1 stella)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Tests are needed for invalid usages of custom nodes. Currently, these usages should throw an exception and stop the compilation. Tests for constructor arguments already exist, but there are no tests for parsing from HTML. That situation needs to be covered.

Example:

<!-- should throw, "src" is missing -->
<m-fragment />

Guida contributor