test: Remove conditional for pgVersion95 in JsonOperatorSpec
pgVersion95 is the minimum already.
This commit is contained in:
committed by
Wolfgang Walther
parent
2f239b9048
commit
7ed8b10776
@@ -8,7 +8,7 @@ import Test.Hspec.Wai
|
|||||||
import Test.Hspec.Wai.JSON
|
import Test.Hspec.Wai.JSON
|
||||||
|
|
||||||
import PostgREST.Config.PgVersion (PgVersion, pgVersion112,
|
import PostgREST.Config.PgVersion (PgVersion, pgVersion112,
|
||||||
pgVersion121, pgVersion95)
|
pgVersion121)
|
||||||
|
|
||||||
import Protolude hiding (get)
|
import Protolude hiding (get)
|
||||||
import SpecHelper
|
import SpecHelper
|
||||||
@@ -209,7 +209,6 @@ spec actualPgVersion = describe "json and jsonb operators" $ do
|
|||||||
`shouldRespondWith`
|
`shouldRespondWith`
|
||||||
[json| [{ "data": { "id":" \"escaped" } }] |]
|
[json| [{ "data": { "id":" \"escaped" } }] |]
|
||||||
|
|
||||||
when (actualPgVersion >= pgVersion95) $
|
|
||||||
context "json array negative index" $ do
|
context "json array negative index" $ do
|
||||||
it "can select with negative indexes" $ do
|
it "can select with negative indexes" $ do
|
||||||
get "/json_arr?select=data->>-1::int&id=in.(1,2)" `shouldRespondWith`
|
get "/json_arr?select=data->>-1::int&id=in.(1,2)" `shouldRespondWith`
|
||||||
|
|||||||
Reference in New Issue
Block a user