add __self to styled

This commit is contained in:
tristan 2023-12-31 19:23:26 +00:00
parent a7c1a1c7de
commit ccc6b53b91
3 changed files with 30 additions and 18 deletions

View file

@ -45,7 +45,7 @@ in
asString = true;
})
(it "makes an a tag" {
expected = html.tag "a" {href = "https://example.com";} "example";
expected = html.tag "a" {class = ["link"]; href = "https://example.com";} "example";
actual = link "https://example.com" "example";
asString = true;
})
@ -54,7 +54,7 @@ in
href = "/style";
rel = "stylesheet";
} "";
actual = stylesheet "/style";
actual = stylesheet {href = "/style"; };
asString = true;
})
(it "makes a list" {