Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Merten
haskell-gargantext
Commits
5aa13f3e
Verified
Commit
5aa13f3e
authored
Feb 06, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] shouldRespondWithFrament with 200 status
parent
f5b6b8c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Utils.hs
test/Test/Utils.hs
+2
-3
No files found.
test/Test/Utils.hs
View file @
5aa13f3e
...
...
@@ -37,9 +37,8 @@ shouldRespondWithFragment :: HasCallStack
=>
WaiSession
st
SResponse
->
JsonFragmentResponseMatcher
->
WaiExpectation
st
shouldRespondWithFragment
action
matcher
=
do
r
<-
action
forM_
(
match
r
(
getJsonMatcher
matcher
))
(
liftIO
.
expectationFailure
)
shouldRespondWithFragment
action
matcher
=
shouldRespondWithFragmentCustomStatus
200
action
matcher
-- | Same as above, but with custom status code
shouldRespondWithFragmentCustomStatus
::
HasCallStack
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment