mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
@@ -6,8 +7,7 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import set from 'lodash/set';
|
||||
|
||||
import type { RedisCredential } from './types';
|
||||
import {
|
||||
setupRedisClient,
|
||||
redisConnectionTest,
|
||||
@@ -15,7 +15,6 @@ import {
|
||||
getValue,
|
||||
setValue,
|
||||
} from './utils';
|
||||
import type { RedisCredential } from './types';
|
||||
|
||||
export class Redis implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -6,8 +6,8 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { redisConnectionTest, setupRedisClient } from './utils';
|
||||
import type { RedisCredential } from './types';
|
||||
import { redisConnectionTest, setupRedisClient } from './utils';
|
||||
|
||||
interface Options {
|
||||
jsonParseBody: boolean;
|
||||
|
||||
@@ -11,8 +11,8 @@ const createClient = jest.fn().mockReturnValue(mockClient);
|
||||
jest.mock('redis', () => ({ createClient }));
|
||||
|
||||
import { Redis } from '../Redis.node';
|
||||
import { redisConnectionTest, setupRedisClient } from '../utils';
|
||||
import type { RedisClient } from '../types';
|
||||
import { redisConnectionTest, setupRedisClient } from '../utils';
|
||||
|
||||
describe('Redis Node', () => {
|
||||
const node = new Redis();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { returnJsonArray } from 'n8n-core';
|
||||
import { captor, mock } from 'jest-mock-extended';
|
||||
import { returnJsonArray } from 'n8n-core';
|
||||
import type { ICredentialDataDecryptedObject, ITriggerFunctions } from 'n8n-workflow';
|
||||
|
||||
import { RedisTrigger } from '../RedisTrigger.node';
|
||||
import { setupRedisClient } from '../utils';
|
||||
import type { RedisClient } from '../types';
|
||||
import { setupRedisClient } from '../utils';
|
||||
|
||||
jest.mock('../utils', () => {
|
||||
const mockRedisClient = mock<RedisClient>();
|
||||
|
||||
Reference in New Issue
Block a user