diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-04-25 23:18:59 +0100 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-04-25 23:18:59 +0100 |
commit | 474fd7f903d4c98ae2439bd3f2cd85c468fdbe29 (patch) | |
tree | 3bcc142af7d2c31bba98b76fc591312c3e96eeda /test | |
parent | 025612d2964205e2e2e53f0695b676d8f8d509f7 (diff) | |
download | lustre-474fd7f903d4c98ae2439bd3f2cd85c468fdbe29.tar.gz lustre-474fd7f903d4c98ae2439bd3f2cd85c468fdbe29.zip |
:recycle: Mark runtime tests as erlang-only.
Diffstat (limited to 'test')
-rw-r--r-- | test/lustre_test.gleam | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lustre_test.gleam b/test/lustre_test.gleam index 638bf89..2330b3c 100644 --- a/test/lustre_test.gleam +++ b/test/lustre_test.gleam @@ -27,6 +27,7 @@ pub fn static_test() { birdie.snap(element.to_string(el), title) } +@target(erlang) pub fn counter_init_test() { let title = "Can render an application's initial state." let app = lustre.simple(counter.init, counter.update, counter.view) @@ -46,6 +47,7 @@ pub fn counter_init_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn counter_update_test() { let title = "Can render an application's state after some updates." let app = lustre.simple(counter.init, counter.update, counter.view) @@ -70,6 +72,7 @@ pub fn counter_update_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn counter_diff_test() { let title = "Can compute a diff from one render to the next" let app = lustre.simple(counter.init, counter.update, counter.view) @@ -107,6 +110,7 @@ pub fn counter_diff_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn fragment_init_test() { let title = "Can render an application's initial state when using fragments" let app = lustre.simple(fragment.init, fragment.update, fragment.view) @@ -126,6 +130,7 @@ pub fn fragment_init_test() { process.send(runtime, Shutdown) } +@target(erlang) pub fn fragment_counter_diff_test() { let title = "Can compute a diff from one render to the next with fragments" let app = lustre.simple(fragment.init, fragment.update, fragment.view) |