mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +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 * as amqplib from 'amqplib';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,8 +6,9 @@ import type {
|
||||
ITriggerFunctions,
|
||||
} from 'n8n-workflow';
|
||||
import { jsonParse, sleep } from 'n8n-workflow';
|
||||
import * as amqplib from 'amqplib';
|
||||
|
||||
import { formatPrivateKey } from '@utils/utilities';
|
||||
|
||||
import type { ExchangeType, Options, RabbitMQCredentials, TriggerOptions } from './types';
|
||||
|
||||
const credentialKeys = ['hostname', 'port', 'username', 'password', 'vhost'] as const;
|
||||
|
||||
@@ -13,7 +13,6 @@ import type {
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { rabbitDefaultOptions } from './DefaultOptions';
|
||||
|
||||
import { MessageTracker, rabbitmqConnectQueue, parseMessage } from './GenericFunctions';
|
||||
import type { TriggerOptions } from './types';
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ mockChannel.connection = mockConnection;
|
||||
const connect = jest.fn().mockReturnValue(mockConnection);
|
||||
jest.mock('amqplib', () => ({ connect }));
|
||||
|
||||
import type { TriggerOptions } from '../types';
|
||||
import {
|
||||
parseMessage,
|
||||
rabbitmqConnect,
|
||||
@@ -17,6 +16,7 @@ import {
|
||||
rabbitmqCreateChannel,
|
||||
MessageTracker,
|
||||
} from '../GenericFunctions';
|
||||
import type { TriggerOptions } from '../types';
|
||||
|
||||
describe('RabbitMQ GenericFunctions', () => {
|
||||
const credentials = {
|
||||
|
||||
Reference in New Issue
Block a user