From afb57d6dbdeb1628d420411a41fdbbd479b6732f Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 27 Jan 2024 17:19:31 +0000 Subject: :alembic: Set up some basic snapshot tests. --- test/apps/static.gleam | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/apps/static.gleam (limited to 'test/apps/static.gleam') diff --git a/test/apps/static.gleam b/test/apps/static.gleam new file mode 100644 index 0000000..d41964a --- /dev/null +++ b/test/apps/static.gleam @@ -0,0 +1,17 @@ +// IMPORTS --------------------------------------------------------------------- + +import lustre/attribute.{src} +import lustre/element.{text} +import lustre/element/html.{body, h1, head, html, img, title} + +// VIEW ------------------------------------------------------------------------ + +pub fn view() { + html([], [ + head([], [title([], "Hello, World!")]), + body([], [ + h1([], [text("Hello, World!")]), + img([src("https://source.unsplash.com/random")]), + ]), + ]) +} -- cgit v1.2.3