11import {unitt}!
2- import {src/elements/_generator }!
2+ import {src/html }!
33
44test "generic elements follows the standard for :string" [
5- result: element "el" "Hello, World!"
5+ result: html\ element "el" "Hello, World!"
66 assert -> "<el>Hello, World!</el>" = result
77]
88
@@ -17,8 +17,8 @@ test "generic elements follows the standard for nested :block s" [
1717 ;; the user shouldn't use '@ to evaluate, the element must do it
1818
1919 breakLine: "<br>"
20- bold: $[x][element "b" x]
21- paragraph: $[x][element "p" x]
20+ bold: $[x][html\ element "b" x]
21+ paragraph: $[x][html\ element "p" x]
2222
2323 expect: {!html
2424 <p>
@@ -51,7 +51,7 @@ test "indentation follows the nesting of elements" [
5151 ;; ; Content
5252 ;; ; </tag>
5353
54- divisory: $[x][element "div" x]
54+ divisory: $[x][html\ element "div" x]
5555
5656 expect: {!html
5757 <div>
@@ -91,9 +91,9 @@ test "dynamic attributes follows standard" [
9191 ;; ; Content
9292 ;; ; </tag>
9393
94- divisory: $[x][element "div" x]
95- entry: $[x][element .name: x "input" ""]
96- button: $[x][element "button" x]
94+ divisory: $[x][html\ element "div" x]
95+ entry: $[x][html\ element .name: x "input" ""]
96+ button: $[x][html\ element "button" x]
9797
9898 expect: {!html
9999 <div class="login-box">
@@ -116,7 +116,7 @@ test "dynamic attributes follows standard" [
116116
117117
118118test "snake-case should be converted to kebab" [
119- divisory: $[x][element 'div x]
119+ divisory: $[x][html\ element 'div x]
120120 expect: {!html
121121 <div aria-valuenow="50"></div>
122122 }
@@ -128,7 +128,7 @@ test "snake-case should be converted to kebab" [
128128
129129
130130test "auto void elements when pass a :dictionary as parameter" [
131- input: $[x][element 'input x]
131+ input: $[x][html\ element 'input x]
132132 expect: {!html
133133 <input type="email"></input>
134134 }
0 commit comments