Module

Node.Express.Test.Mock

Package
purescript-express
Repository
nkly/purescript-express

#MockResponse Source

type MockResponse = { cookies :: Object MockCookie, data :: String, headers :: Object String, statusCode :: Int }

#MockRequest Source

newtype MockRequest

Constructors

#MockCookie Source

type MockCookie = { name :: String, options :: String, value :: String }

#TestExpress Source

#assertMatch Source

assertMatch :: forall a. Show a => Eq a => String -> a -> a -> Test

#setTestHeader Source