graphql-engine/server/src-test/Hasura
Samir Talwar 9c4792c417 server: Shorten the init specs.
Makes the init specs shorter by using `shouldBe` instead of `shouldSatisfy` wherever possible. This also makes test failures more expressive.

It also simplifies boolean logic in most places, following HLint warnings. These changes brought to you by `hlint --refactor`, which is basically magic.

I have left some redundancy in the boolean logic for clarity, along with the appropriate HLint suppressions.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5087
GitOrigin-RevId: 52bf3626be2615e6a32a0fc0e8be19cca31ee4ad
2022-07-18 22:13:31 +00:00
..
Backends server/postgres: document and refactor IdentifierUniqueness and SQL.DML 2022-07-18 09:46:17 +00:00
Base An ErrorMessage type, to encapsulate. 2022-07-18 20:27:06 +00:00
Generator Rewrite ir generators 2022-04-05 22:09:40 +00:00
GraphQL An ErrorMessage type, to encapsulate. 2022-07-18 20:27:06 +00:00
Metadata/DTO Make test path relative to project folder. 2022-07-04 15:45:02 +00:00
QuickCheck Remove or ignore all instances of unsafeMkName. 2022-07-18 17:02:15 +00:00
RQL server: adding a few code comments 2022-07-12 09:26:32 +00:00
Server server: Shorten the init specs. 2022-07-18 22:13:31 +00:00
SQL server: Remove the Show instance from QErr and anything that touches it. 2022-07-01 11:48:26 +00:00
AppSpec.hs Add forkIO and threadDelay errors to HLint. 2022-06-30 09:56:06 +00:00
EventingSpec.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
IncrementalSpec.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
SessionSpec.hs server: Splits QuickCheck extension and orphan instance modules 2022-02-22 15:33:37 +00:00
StreamingSubscriptionSuite.hs Use hspec-discover for src-test, remove unitSpecs list. 2022-07-18 14:15:17 +00:00