test(spec): rename misleading function name in ErrorSpec.hs

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
Taimoor Zaeem
2026-06-22 23:52:45 +05:00
parent ded9be6774
commit 1a35af5024
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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