MCPcopy
hub / github.com/FoalTS/foal / get-session-id-from-request.spec.ts

File get-session-id-from-request.spec.ts

packages/core/src/sessions/http/get-session-id-from-request.spec.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { strictEqual, throws } from 'assert';
2import { Config, Context } from '../../core';
3import { SESSION_DEFAULT_COOKIE_NAME } from './constants';
4import { getSessionIDFromRequest, RequestValidationError } from './get-session-id-from-request';

Callers

nothing calls this directly

Calls 7

getSessionIDFromRequestFunction · 0.90
removeMethod · 0.80
createEmptyRequestFunction · 0.70
createRequestWithHeaderFunction · 0.70
createRequestWithCookieFunction · 0.70
contextFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected