diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-03-14 06:46:46 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-03-14 06:47:00 +0100 |
commit | b53ab020043985de63e81c04cee7f69ee08c7e18 (patch) | |
tree | d42bd7ae1fe509f4e0f61707cf1060f03365b6c2 | |
parent | e689c185024783c72952ed00283f82b8e585133a (diff) | |
download | lustre-b53ab020043985de63e81c04cee7f69ee08c7e18.tar.gz lustre-b53ab020043985de63e81c04cee7f69ee08c7e18.zip |
:alembic: Update tests to handle correct boolean attribute output.
-rw-r--r-- | birdie_snapshots/can_render_static_html.accepted | 4 | ||||
-rw-r--r-- | test/apps/static.gleam | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/birdie_snapshots/can_render_static_html.accepted b/birdie_snapshots/can_render_static_html.accepted index 5fe52b6..907c6a5 100644 --- a/birdie_snapshots/can_render_static_html.accepted +++ b/birdie_snapshots/can_render_static_html.accepted @@ -1,5 +1,5 @@ --- -version: 1.0.1 +version: 1.0.4 title: Can render static HTML --- -<html><head><title>Hello, World!</title></head><body><h1>Hello, World!</h1><img src="https://source.unsplash.com/random"></body></html>
\ No newline at end of file +<html><head><title>Hello, World!</title></head><body><h1>Hello, World!</h1><input disabled><img src="https://source.unsplash.com/random"></body></html>
\ No newline at end of file diff --git a/test/apps/static.gleam b/test/apps/static.gleam index d41964a..5c6ca05 100644 --- a/test/apps/static.gleam +++ b/test/apps/static.gleam @@ -1,8 +1,8 @@ // IMPORTS --------------------------------------------------------------------- -import lustre/attribute.{src} +import lustre/attribute.{disabled, src} import lustre/element.{text} -import lustre/element/html.{body, h1, head, html, img, title} +import lustre/element/html.{body, h1, head, html, img, input, title} // VIEW ------------------------------------------------------------------------ @@ -11,6 +11,7 @@ pub fn view() { head([], [title([], "Hello, World!")]), body([], [ h1([], [text("Hello, World!")]), + input([disabled(True)]), img([src("https://source.unsplash.com/random")]), ]), ]) |