mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Reduce boilterplate code in between tests 🧹, and fix the tests in node.js 20 (no-changelog) (#6654)
refactor(core): Reduce boilterplate code in between tests also cleaned up some imports, and fixed the tests in node.js 20
This commit is contained in:
committed by
GitHub
parent
3e07ffa73e
commit
b895ba438a
@@ -24,27 +24,6 @@ export const LOGGED_OUT_RESPONSE_BODY = {
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Routes requiring a valid `n8n-auth` cookie for a user, either owner or member.
|
||||
*/
|
||||
export const ROUTES_REQUIRING_AUTHENTICATION: Readonly<string[]> = [
|
||||
'PATCH /me',
|
||||
'PATCH /me/password',
|
||||
'POST /me/survey',
|
||||
'POST /owner/setup',
|
||||
'GET /non-existent',
|
||||
];
|
||||
|
||||
/**
|
||||
* Routes requiring a valid `n8n-auth` cookie for an owner.
|
||||
*/
|
||||
export const ROUTES_REQUIRING_AUTHORIZATION: Readonly<string[]> = [
|
||||
'POST /users',
|
||||
'DELETE /users/123',
|
||||
'POST /users/123/reinvite',
|
||||
'POST /owner/setup',
|
||||
];
|
||||
|
||||
export const COMMUNITY_PACKAGE_VERSION = {
|
||||
CURRENT: '0.1.0',
|
||||
UPDATED: '0.2.0',
|
||||
|
||||
Reference in New Issue
Block a user