From 1a35af50241ddf283b90715a26766130be8d9125 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Sat, 20 Jun 2026 12:38:53 +0500 Subject: [PATCH] test(spec): rename misleading function name in ErrorSpec.hs Signed-off-by: Taimoor Zaeem --- test/spec/Feature/Query/ErrorSpec.hs | 6 +++--- test/spec/Main.hs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/spec/Feature/Query/ErrorSpec.hs b/test/spec/Feature/Query/ErrorSpec.hs index 890b19565..bfd7e49ce 100644 --- a/test/spec/Feature/Query/ErrorSpec.hs +++ b/test/spec/Feature/Query/ErrorSpec.hs @@ -8,9 +8,9 @@ import Test.Hspec.Wai.JSON import Protolude hiding (get) import SpecHelper -pgErrorCodeMapping :: SpecWithConfig -pgErrorCodeMapping withConfig = withConfig baseCfg $ do - describe "PostreSQL error code mappings" $ do +spec :: SpecWithConfig +spec withConfig = withConfig baseCfg $ do + describe "Test PostgreSQL and PostgREST errors" $ do it "should return 500 for cardinality_violation" $ get "/bad_subquery" `shouldRespondWith` 500 diff --git a/test/spec/Main.hs b/test/spec/Main.hs index fc68abe17..3680b7db6 100644 --- a/test/spec/Main.hs +++ b/test/spec/Main.hs @@ -136,7 +136,7 @@ main = do , ("Feature.Query.DeleteSpec" , Feature.Query.DeleteSpec.spec) , ("Feature.Query.EmbedDisambiguationSpec" , Feature.Query.EmbedDisambiguationSpec.spec) , ("Feature.Query.EmbedInnerJoinSpec" , Feature.Query.EmbedInnerJoinSpec.spec) - , ("Feature.Query.ErrorSpec.pgErrorCodeMapping" , Feature.Query.ErrorSpec.pgErrorCodeMapping) + , ("Feature.Query.ErrorSpec" , Feature.Query.ErrorSpec.spec) , ("Feature.Query.InsertSpec" , Feature.Query.InsertSpec.spec) , ("Feature.Query.JsonOperatorSpec" , Feature.Query.JsonOperatorSpec.spec) , ("Feature.Query.NullsStripSpec" , Feature.Query.NullsStripSpec.spec)