Module

Node.Express.Test.Mock

#MockResponse

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

#MockRequest

newtype MockRequest

Constructors

#MockCookie

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

#setRequestSignedCookie

#TestExpress

#setupMockApp

#assertMatch

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

#assertInApp

#assertStatusCode

#setTestHeader

Modules