Skip to content

Commit

Permalink
Merge pull request #1 from jchavarri/pipe-last
Browse files Browse the repository at this point in the history
Pipe last
  • Loading branch information
jchavarri authored Jan 9, 2024
2 parents 79942b9 + 52eea6d commit 4379071
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/fest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ external test : string -> (unit -> unit) -> unit = "test" [@@mel.module "node:te

type assertion
external expect : assertion = "assert" [@@mel.module]
external equal : assertion -> 'a -> 'a -> unit = "equal" [@@mel.send]
external strict_equal : assertion -> 'a -> 'a -> unit = "strictEqual" [@@mel.send]
external equal : 'a -> 'a -> assertion -> unit = "equal" [@@mel.send]
external strict_equal : 'a -> 'a -> assertion -> unit = "strictEqual" [@@mel.send]
let strictEqual = strict_equal
4 changes: 2 additions & 2 deletions test/one.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
open Fest

let () = test "some test" (fun () ->
expect |. strict_equal 1 1
expect |> strict_equal 1 1
)
let () = test "second basic test" (fun () ->
expect |. equal "foo" "foo"
expect |> equal "foo" "foo"
)
2 changes: 1 addition & 1 deletion test/two.re
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ let () =

// Check that Hello component renders the name properly.
let el = RTL.getByText(~matcher=`Str("Hello Nila"), result);
expect->(strictEqual(textContent(el), "Hello Nila"));
expect |> strictEqual(textContent(el), "Hello Nila");
});

0 comments on commit 4379071

Please sign in to comment.