mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -751,7 +751,7 @@ describe('Workflow', () => {
|
||||
});
|
||||
|
||||
describe('getParameterValue', () => {
|
||||
const tests: {
|
||||
const tests: Array<{
|
||||
description: string;
|
||||
input: {
|
||||
[nodeName: string]: {
|
||||
@@ -761,7 +761,7 @@ describe('Workflow', () => {
|
||||
};
|
||||
};
|
||||
output: Record<string, unknown>;
|
||||
}[] = [
|
||||
}> = [
|
||||
{
|
||||
description: 'read simple not expression value',
|
||||
input: {
|
||||
@@ -1296,7 +1296,7 @@ describe('Workflow', () => {
|
||||
const itemIndex = 0;
|
||||
const runIndex = 0;
|
||||
const connectionInputData: INodeExecutionData[] =
|
||||
runExecutionData.resultData.runData!['Node1']![0]!.data!.main[0]!;
|
||||
runExecutionData.resultData.runData.Node1[0]!.data!.main[0]!;
|
||||
|
||||
for (const parameterName of Object.keys(testData.output)) {
|
||||
const parameterValue = nodes.find((node) => node.name === activeNodeName)!.parameters[
|
||||
@@ -1451,7 +1451,7 @@ describe('Workflow', () => {
|
||||
const itemIndex = 0;
|
||||
const runIndex = 0;
|
||||
const connectionInputData: INodeExecutionData[] =
|
||||
runExecutionData.resultData.runData!['Node1']![0]!.data!.main[0]!;
|
||||
runExecutionData.resultData.runData.Node1[0]!.data!.main[0]!;
|
||||
const parameterName = 'values';
|
||||
|
||||
const parameterValue = nodes.find((node) => node.name === activeNodeName)!.parameters[
|
||||
|
||||
Reference in New Issue
Block a user