Skip to content

Commit 4809e5e

Browse files
committed
Fix tests
1 parent 95c49ab commit 4809e5e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

stack.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
resolver: lts-15.8
1+
resolver: lts-17.9
22
packages:
33
- '.'
44
extra-deps:
5-
# - elm-bridge-0.5.2
6-
- ../elm-bridge
5+
- elm-bridge-0.6.1
6+
# - ../elm-bridge
77
flags: {}
88
extra-package-dbs: []

test/Common.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ module Common where
55

66
import Data.Proxy (Proxy (Proxy))
77
import Data.Text (Text)
8-
import Servant.API ((:<|>), (:>), Capture, Get, GetNoContent, Header,
8+
import Servant.API ((:<|>), (:>), Capture, Get, Header,
99
Header', Headers, JSON, Post,
10-
PostNoContent, Put, QueryFlag, QueryParam,
10+
Put, QueryFlag, QueryParam,
1111
QueryParam', QueryParams, ReqBody, Required)
1212
import Servant.Elm (deriveBoth, defaultOptions)
1313

@@ -38,9 +38,11 @@ type TestApi =
3838
:> Get '[JSON] [Book]
3939
:<|> "books"
4040
:> ReqBody '[JSON] Book
41-
:> PostNoContent '[JSON] ()
41+
-- :> PostNoContent '[JSON] ()
42+
:> Post '[JSON] ()
4243
:<|> "nothing"
43-
:> GetNoContent '[JSON] ()
44+
:> Get '[JSON] ()
45+
-- :> GetNoContent '[JSON] ()
4446
:<|> "nothing"
4547
:> Put '[JSON] () -- old way to specify no content
4648
:<|> "with-a-header"

0 commit comments

Comments
 (0)