hyTags
HomeHome DocumentationDocumentation

assert-type

Asserts that a value has the expected type and displays a test result
Parameter
Type
Description
self
T
The value to check the type of
type
Type
The expected type
text
String?
Optional custom message to display in the test result
return
void
Displays a test result element showing pass or fail status with type information
Test Case:Assert type passes for correct type
    <div></div>
    
    <string-new value="hello">
    <assert-type type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed