From cb0b36b651145c43132a884b0ee1ba098c95dcd8 Mon Sep 17 00:00:00 2001 From: Maxime Mangel Date: Tue, 26 Nov 2024 20:45:08 +0100 Subject: [PATCH] fix: tests I had the argument order inverted --- tests/Integration/Compiler/CompilerHelpersTests.fs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Integration/Compiler/CompilerHelpersTests.fs b/tests/Integration/Compiler/CompilerHelpersTests.fs index 0bab645f4..5b4bd5dfa 100644 --- a/tests/Integration/Compiler/CompilerHelpersTests.fs +++ b/tests/Integration/Compiler/CompilerHelpersTests.fs @@ -9,13 +9,13 @@ let tests = testList "Compiler Helpers" [ testCase "expectedVersionMatchesActual works for same major version" <| fun _ -> Fable.CompilerExt.expectedVersionMatchesActual "5.0.0" "5.0.0" |> equal true - Fable.CompilerExt.expectedVersionMatchesActual "5.0.1" "5.0.0" |> equal true - Fable.CompilerExt.expectedVersionMatchesActual "5.1.0" "5.0.0" |> equal true + Fable.CompilerExt.expectedVersionMatchesActual "5.0.0" "5.0.1" |> equal true + Fable.CompilerExt.expectedVersionMatchesActual "5.1.0" "5.1.0" |> equal true testCase "expectedVersionMatchesActual works if actual version is higher than expected version" <| fun _ -> Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.0.0" |> equal true - Fable.CompilerExt.expectedVersionMatchesActual "4.0.1" "5.0.0" |> equal true - Fable.CompilerExt.expectedVersionMatchesActual "4.1.0" "5.0.0" |> equal true + Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.0.1" |> equal true + Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "5.1.0" |> equal true testCase "expectedVersionMatchesActual reject if actual version is lower than expected version" <| fun _ -> Fable.CompilerExt.expectedVersionMatchesActual "4.0.0" "3.0.0" |> equal false