Console
hyTags
Home
Home
Documentation
Documentation
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>
<div></div>
<string-new value="hello"> <assert-type type="string">
<string-new value="hello"> <assert-type type="string">
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed