eugef / node-mocks-http

Mock 'http' objects for testing Express,js, Next.js and Koa routing functions
Other
761 stars 135 forks source link

Add support for append on MockResponse #143

Closed OpenDog closed 6 years ago

OpenDog commented 7 years ago

Express 4.11+

http://expressjs.com/en/api.html#res.append

Monkey patch for now:

        mockResponse["append"] = (header: string, value: string) => {
            console.log("Mock Append - header: " + header + " value: " + value);
        };