warriordog/mooltipage

Tests for invalid usage of custom nodes

Open

#6 opened on Aug 10, 2020

 (0 comments) (0 reactions) (0 assignees)TypeScript (4 forks)auto 404
good first issuetests

Repository metrics

Stars
 (1 star)
PR merge metrics
 (PR metrics pending)

Description

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 />

Contributor guide