mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Fix both sets of tests
This commit is contained in:
parent
0844b911d9
commit
a083914649
|
@ -158,6 +158,7 @@ export function createAgent(
|
||||||
const agent = request.agent(app);
|
const agent = request.agent(app);
|
||||||
|
|
||||||
if (options?.apiPath === undefined || options?.apiPath === 'internal') {
|
if (options?.apiPath === undefined || options?.apiPath === 'internal') {
|
||||||
|
agent.use(prefix(REST_PATH_SEGMENT));
|
||||||
if (options?.auth && options?.user) {
|
if (options?.auth && options?.user) {
|
||||||
const { token } = issueJWT(options.user);
|
const { token } = issueJWT(options.user);
|
||||||
agent.jar.setCookie(`${AUTH_COOKIE_NAME}=${token}`);
|
agent.jar.setCookie(`${AUTH_COOKIE_NAME}=${token}`);
|
||||||
|
|
Loading…
Reference in a new issue