From bfc31c52f18db1e535495d903ff2f9e54b94b3b7 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Thu, 25 Apr 2024 20:04:04 +0100 Subject: :recycle: Remove use of depcrecated function.compose --- test/lustre_test.gleam | 57 +++++++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 22 deletions(-) (limited to 'test') 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, ) -- cgit v1.2.3