@@ -213,7 +213,7 @@ main = AF.launchAff_ $ TSR.runSpec [consoleReporter] do
213
213
]
214
214
]
215
215
html' <- liftEffect $ FRS .render html
216
- TSA .shouldEqual """ <html><head><title>title</title></head><body><main><button>-</button><br>Test<button>+</button><svg viewBox="0 0 23 0"><path d="234" /></svg><div><div><span><a>here</a></span></div></div></main></body></html>""" html'
216
+ TSA .shouldEqual """ <!DOCTYPE html>< html><head><title>title</title></head><body><main><button>-</button><br>Test<button>+</button><svg viewBox="0 0 23 0"><path d="234" /></svg><div><div><span><a>here</a></span></div></div></main></body></html>""" html'
217
217
218
218
TS .it " nested nodes with attributes" do
219
219
let html = HE .html [HA .lang " en" ] [
@@ -232,7 +232,7 @@ main = AF.launchAff_ $ TSR.runSpec [consoleReporter] do
232
232
]
233
233
]
234
234
html' <- liftEffect $ FRS .render html
235
- TSA .shouldEqual """ <html lang="en"><head><title>title</title></head><body id="content"><main><button style="display: block; width: 20px">-</button><br>Test<button my-attribute="myValue">+</button><hr style="border: 200px solid blue"><div><div><span><a>here</a></span></div></div></main></body></html>""" html'
235
+ TSA .shouldEqual """ <!DOCTYPE html>< html lang="en"><head><title>title</title></head><body id="content"><main><button style="display: block; width: 20px">-</button><br>Test<button my-attribute="myValue">+</button><hr style="border: 200px solid blue"><div><div><span><a>here</a></span></div></div></main></body></html>""" html'
236
236
237
237
TS .it " nested nodes with properties and attributes" do
238
238
let html = HE .html [HA .lang " en" ] [
@@ -252,13 +252,13 @@ main = AF.launchAff_ $ TSR.runSpec [consoleReporter] do
252
252
]
253
253
]
254
254
html' <- liftEffect $ FRS .render html
255
- TSA .shouldEqual """ <html lang="en"><head disabled="disabled"><title>title</title></head><body id="content"><main><button style="display: block; width: 20px">-</button><br>Test<button my-attribute="myValue">+</button><hr style="border: 200px solid blue" autocomplete="off"><div><div><span><a autofocus="autofocus">here</a></span></div></div></main></body></html>""" html'
255
+ TSA .shouldEqual """ <!DOCTYPE html>< html lang="en"><head disabled="disabled"><title>title</title></head><body id="content"><main><button style="display: block; width: 20px">-</button><br>Test<button my-attribute="myValue">+</button><hr style="border: 200px solid blue" autocomplete="off"><div><div><span><a autofocus="autofocus">here</a></span></div></div></main></body></html>""" html'
256
256
257
257
TS .describe " root node" do
258
258
TS .it " root node is unchanged" do
259
259
liftEffect unsafeCreateEnviroment
260
260
let html = HE .div " test-div" $ HE .input [HA .id " t" , HA .value " a" ]
261
- state <- mountHtml' html
261
+ void $ mountHtml' html
262
262
rootNode <- liftEffect $ FAD .querySelector " #mount-point"
263
263
TSA .shouldSatisfy rootNode DM .isJust
264
264
0 commit comments