MCPcopy Create free account
hub / github.com/adonisjs/session / createFakeConfig

Function createFakeConfig

tests/session_collection.spec.ts:16–25  ·  view source on GitHub ↗
(store: SessionStoreContract)

Source from the content-addressed store, hash-verified

14import { E_SESSION_TAGGING_NOT_SUPPORTED } from '../src/errors.ts'
15
16function createFakeConfig(store: SessionStoreContract): ResolvedSessionConfig {
17 return {
18 enabled: true,
19 cookieName: 'adonis_session',
20 age: '2h',
21 cookie: {},
22 store: 'test',
23 stores: { test: () => store },
24 }
25}
26
27test.group('Session Collection', (group) => {
28 group.each.setup(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected