mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Enable import/order eslint rule (#10794)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import type {
|
||||
INodeListSearchResult,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
ResourceMapperFields,
|
||||
} from 'n8n-workflow';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
|
||||
import { DynamicNodeParametersService } from '@/services/dynamic-node-parameters.service';
|
||||
import * as AdditionalData from '@/workflow-execute-additional-data';
|
||||
|
||||
import { createOwner } from '../shared/db/users';
|
||||
import { setupTestServer } from '../shared/utils';
|
||||
import type { SuperAgentTest } from '../shared/types';
|
||||
import { setupTestServer } from '../shared/utils';
|
||||
|
||||
describe('DynamicNodeParametersController', () => {
|
||||
const testServer = setupTestServer({ endpointGroups: ['dynamic-node-parameters'] });
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import validator from 'validator';
|
||||
|
||||
import type { User } from '@/databases/entities/user';
|
||||
|
||||
import type { UserInvitationResult } from '../../shared/utils/users';
|
||||
|
||||
export function assertReturnedUserProps(user: User) {
|
||||
|
||||
@@ -1,30 +1,29 @@
|
||||
import Container from 'typedi';
|
||||
import { Not } from '@n8n/typeorm';
|
||||
import Container from 'typedi';
|
||||
|
||||
import type { User } from '@/databases/entities/user';
|
||||
import { ProjectRelationRepository } from '@/databases/repositories/project-relation.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { EventService } from '@/events/event.service';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { UserManagementMailer } from '@/user-management/email';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { PasswordUtility } from '@/services/password.utility';
|
||||
|
||||
import {
|
||||
randomEmail,
|
||||
randomInvalidPassword,
|
||||
randomName,
|
||||
randomValidPassword,
|
||||
} from '../../shared/random';
|
||||
import { createMember, createOwner, createUserShell } from '../../shared/db/users';
|
||||
import { mockInstance } from '../../../shared/mocking';
|
||||
import * as utils from '../../shared/utils';
|
||||
import { UserManagementMailer } from '@/user-management/email';
|
||||
|
||||
import {
|
||||
assertReturnedUserProps,
|
||||
assertStoredUserProps,
|
||||
assertUserInviteResult,
|
||||
} from './assertions';
|
||||
|
||||
import type { User } from '@/databases/entities/user';
|
||||
import { mockInstance } from '../../../shared/mocking';
|
||||
import { createMember, createOwner, createUserShell } from '../../shared/db/users';
|
||||
import {
|
||||
randomEmail,
|
||||
randomInvalidPassword,
|
||||
randomName,
|
||||
randomValidPassword,
|
||||
} from '../../shared/random';
|
||||
import * as utils from '../../shared/utils';
|
||||
import type { UserInvitationResult } from '../../shared/utils/users';
|
||||
import { ProjectRelationRepository } from '@/databases/repositories/project-relation.repository';
|
||||
|
||||
describe('InvitationController', () => {
|
||||
const mailer = mockInstance(UserManagementMailer);
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import { Container } from 'typedi';
|
||||
import { response as Response } from 'express';
|
||||
import nock from 'nock';
|
||||
import { parse as parseQs } from 'querystring';
|
||||
import { Container } from 'typedi';
|
||||
|
||||
import { OAuth2CredentialController } from '@/controllers/oauth/oauth2-credential.controller';
|
||||
import { CredentialsHelper } from '@/credentials-helper';
|
||||
import type { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import type { User } from '@/databases/entities/user';
|
||||
import { CredentialsHelper } from '@/credentials-helper';
|
||||
import { OAuth2CredentialController } from '@/controllers/oauth/oauth2-credential.controller';
|
||||
|
||||
import { createOwner } from '@test-integration/db/users';
|
||||
import { saveCredential } from '@test-integration/db/credentials';
|
||||
import { createOwner } from '@test-integration/db/users';
|
||||
import * as testDb from '@test-integration/test-db';
|
||||
import { setupTestServer } from '@test-integration/utils';
|
||||
import type { SuperAgentTest } from '@test-integration/types';
|
||||
import { setupTestServer } from '@test-integration/utils';
|
||||
|
||||
describe('OAuth2 API', () => {
|
||||
const testServer = setupTestServer({ endpointGroups: ['oauth2'] });
|
||||
|
||||
Reference in New Issue
Block a user