aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-04-25 20:04:04 +0100
committerHayleigh Thompson <me@hayleigh.dev>2024-04-25 20:04:04 +0100
commitbfc31c52f18db1e535495d903ff2f9e54b94b3b7 (patch)
tree20339bce347f6b74b159821169bc8db385dd95e0
parent93aeeb7a6316389f3bd4bbdb7a9ffc555677e719 (diff)
downloadlustre-bfc31c52f18db1e535495d903ff2f9e54b94b3b7.tar.gz
lustre-bfc31c52f18db1e535495d903ff2f9e54b94b3b7.zip
:recycle: Remove use of depcrecated function.compose
-rw-r--r--test/lustre_test.gleam57
1 files changed, 35 insertions, 22 deletions
diff --git a/test/lustre_test.gleam b/test/lustre_test.gleam
index 6cd93c3..638bf89 100644
--- a/test/lustre_test.gleam
+++ b/test/lustre_test.gleam
@@ -5,7 +5,6 @@ import apps/fragment
import apps/static
import birdie
import gleam/erlang/process
-import gleam/function
import gleam/json
import gleeunit
import lustre
@@ -35,9 +34,11 @@ pub fn counter_init_test() {
let el =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -57,9 +58,11 @@ pub fn counter_update_test() {
let el =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -75,9 +78,11 @@ pub fn counter_diff_test() {
let prev =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -88,9 +93,11 @@ pub fn counter_diff_test() {
let next =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -107,9 +114,11 @@ pub fn fragment_init_test() {
let el =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -125,9 +134,11 @@ pub fn fragment_counter_diff_test() {
let prev =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)
@@ -138,9 +149,11 @@ pub fn fragment_counter_diff_test() {
let next =
process.call(
runtime,
- function.curry2(process.send)
- |> function.compose(View)
- |> function.compose(Debug),
+ fn(reply) {
+ process.send(reply, _)
+ |> View
+ |> Debug
+ },
100,
)