Skip to content
#

oak

Here are 164 public repositories matching this topic...

Some-Dood
Some-Dood commented Aug 6, 2021

Hello there! After some experimentation with the mocking API, I discovered that mocked contexts do not provide a mocked Cookies instance. Suppose we wanted to test the following middleware:

// session.ts
// Explicit type annotations omitted for brevity...
export function checkSession(ctx) {
    const maybeSessionId = ctx.cookies.get('sid');
    ctx.assert(maybeSessionId, St

Improve this page

Add a description, image, and links to the oak topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the oak topic, visit your repo's landing page and select "manage topics."

Learn more