servant-mock support for CaptureAll
This commit is contained in:
parent
a616a8d689
commit
0d8a5b5aff
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ instance (KnownSymbol path, HasMock rest context) => HasMock (path :> rest) cont
|
||||||
instance (KnownSymbol s, FromHttpApiData a, HasMock rest context) => HasMock (Capture s a :> rest) context where
|
instance (KnownSymbol s, FromHttpApiData a, HasMock rest context) => HasMock (Capture s a :> rest) context where
|
||||||
mock _ context = \_ -> mock (Proxy :: Proxy rest) context
|
mock _ context = \_ -> mock (Proxy :: Proxy rest) context
|
||||||
|
|
||||||
|
instance (KnownSymbol s, FromHttpApiData a, HasMock rest context) => HasMock (CaptureAll s a :> rest) context where
|
||||||
|
mock _ context = \_ -> mock (Proxy :: Proxy rest) context
|
||||||
|
|
||||||
instance (AllCTUnrender ctypes a, HasMock rest context) => HasMock (ReqBody ctypes a :> rest) context where
|
instance (AllCTUnrender ctypes a, HasMock rest context) => HasMock (ReqBody ctypes a :> rest) context where
|
||||||
mock _ context = \_ -> mock (Proxy :: Proxy rest) context
|
mock _ context = \_ -> mock (Proxy :: Proxy rest) context
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue