mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
This commit is contained in:
@@ -284,7 +284,7 @@ describe('useDataSchema', () => {
|
||||
|
||||
it('should return the correct data when using the generated json path on an object', () => {
|
||||
const input = { people: ['Joe', 'John'] };
|
||||
const schema = getSchema(input) as Schema;
|
||||
const schema = getSchema(input);
|
||||
const pathData = jp.query(
|
||||
input,
|
||||
`$${((schema.value as Schema[])[0].value as Schema[])[0].path}`,
|
||||
@@ -297,7 +297,7 @@ describe('useDataSchema', () => {
|
||||
{ name: 'John', age: 22, hobbies: ['surfing', 'traveling'] },
|
||||
{ name: 'Joe', age: 33, hobbies: ['skateboarding', 'gaming'] },
|
||||
];
|
||||
const schema = getSchema(input) as Schema;
|
||||
const schema = getSchema(input);
|
||||
const pathData = jp.query(
|
||||
input,
|
||||
`$${(((schema.value as Schema[])[0].value as Schema[])[2].value as Schema[])[1].path}`,
|
||||
@@ -307,7 +307,7 @@ describe('useDataSchema', () => {
|
||||
|
||||
it('should return the correct data when using the generated json path on a list of list', () => {
|
||||
const input = [[1, 2]];
|
||||
const schema = getSchema(input) as Schema;
|
||||
const schema = getSchema(input);
|
||||
const pathData = jp.query(
|
||||
input,
|
||||
`$${((schema.value as Schema[])[0].value as Schema[])[1].path}`,
|
||||
@@ -322,7 +322,7 @@ describe('useDataSchema', () => {
|
||||
{ name: 'Joe', age: 33 },
|
||||
],
|
||||
];
|
||||
const schema = getSchema(input) as Schema;
|
||||
const schema = getSchema(input);
|
||||
const pathData = jp.query(
|
||||
input,
|
||||
`$${(((schema.value as Schema[])[0].value as Schema[])[1].value as Schema[])[1].path}`,
|
||||
@@ -339,7 +339,7 @@ describe('useDataSchema', () => {
|
||||
],
|
||||
},
|
||||
];
|
||||
const schema = getSchema(input) as Schema;
|
||||
const schema = getSchema(input);
|
||||
const pathData = jp.query(
|
||||
input,
|
||||
`$${
|
||||
|
||||
Reference in New Issue
Block a user