mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Expand ESLint to tests in BE packages (no-changelog) (#6147)
* 🔧 Adjust base ESLint config * 🔧 Adjust `lint` and `lintfix` in `nodes-base` * 🔧 Include `test` and `utils` in `nodes-base` * 📘 Convert JS tests to TS * 👕 Apply lintfixes
This commit is contained in:
@@ -5,7 +5,6 @@ import type {
|
||||
DeclarativeRestApiSettings,
|
||||
IRunExecutionData,
|
||||
INodeProperties,
|
||||
IDataObject,
|
||||
IExecuteSingleFunctions,
|
||||
IHttpRequestOptions,
|
||||
IN8nHttpFullResponse,
|
||||
@@ -34,7 +33,7 @@ const preSendFunction1 = async function (
|
||||
this: IExecuteSingleFunctions,
|
||||
requestOptions: IHttpRequestOptions,
|
||||
): Promise<IHttpRequestOptions> {
|
||||
requestOptions.headers = (requestOptions.headers || {}) as IDataObject;
|
||||
requestOptions.headers = requestOptions.headers || {};
|
||||
requestOptions.headers.addedIn = 'preSendFunction1';
|
||||
return requestOptions;
|
||||
};
|
||||
@@ -344,6 +343,7 @@ describe('RoutingNode', () => {
|
||||
type: 'string',
|
||||
routing: {
|
||||
send: {
|
||||
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||
property: '={{ `value${5+1}A` }}',
|
||||
type: 'query',
|
||||
value: '={{$value.toUpperCase()}}',
|
||||
@@ -357,6 +357,7 @@ describe('RoutingNode', () => {
|
||||
type: 'string',
|
||||
routing: {
|
||||
send: {
|
||||
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||
property: '={{ `value${6+1}B` }}',
|
||||
type: 'body',
|
||||
value: "={{$value.split(',')}}",
|
||||
|
||||
Reference in New Issue
Block a user