diff --git a/src/tasks/pair-sync/pair-sync.service.spec.ts b/src/tasks/pair-sync/pair-sync.service.spec.ts index 7b82b23..5f1ee38 100644 --- a/src/tasks/pair-sync/pair-sync.service.spec.ts +++ b/src/tasks/pair-sync/pair-sync.service.spec.ts @@ -9,14 +9,14 @@ import { PairDbService } from '@/database/pair/pair-db.service'; import { TokenDbService } from '@/database/token/token-db.service'; import { Context } from '@/tasks/pair-sync/pair-sync.model'; import { PairSyncService } from '@/tasks/pair-sync/pair-sync.service'; -import { mockContext } from '@/test/utils/context-mock'; import * as data from '@/test/mock-data/context-mock-data'; -import { mockupEnvVars, TEST_NET_VARS } from '@/test/utils/env-mock'; import { objSubEv, swapEvent, swapTxInfo, } from '@/test/mock-data/subscription-event-mock-data'; +import { mockContext } from '@/test/utils/context-mock'; +import { mockupEnvVars, TEST_NET_VARS } from '@/test/utils/env-mock'; describe('PairSyncService', () => { let service: PairSyncService; diff --git a/test/e2e/pair-liquidity-info-history-v2-db.service.e2e-spec.ts b/test/e2e/pair-liquidity-info-history-v2-db.service.e2e-spec.ts index 5964865..c34f2fc 100644 --- a/test/e2e/pair-liquidity-info-history-v2-db.service.e2e-spec.ts +++ b/test/e2e/pair-liquidity-info-history-v2-db.service.e2e-spec.ts @@ -1,5 +1,6 @@ import { Test, TestingModule } from '@nestjs/testing'; import { Decimal } from '@prisma/client/runtime/library'; +import { omit } from 'lodash'; import { PairLiquidityInfoHistoryV2DbService } from '@/database/pair-liquidity-info-history/pair-liquidity-info-history-v2-db.service'; import { PrismaService } from '@/database/prisma.service'; @@ -16,7 +17,6 @@ import { token2, token3, } from '@/test/mock-data/pair-liquidity-info-history-mock-data'; -import { omit } from 'lodash'; describe('PairLiquidityInfoHistoryV2DbService', () => { let service: PairLiquidityInfoHistoryV2DbService; diff --git a/test/e2e/pair-sync.service.e2e-spec.ts b/test/e2e/pair-sync.service.e2e-spec.ts index b8cab20..a1c5cdd 100644 --- a/test/e2e/pair-sync.service.e2e-spec.ts +++ b/test/e2e/pair-sync.service.e2e-spec.ts @@ -7,8 +7,8 @@ import { PairDbService } from '@/database/pair/pair-db.service'; import { PrismaService } from '@/database/prisma.service'; import { TokenDbService } from '@/database/token/token-db.service'; import { PairSyncService } from '@/tasks/pair-sync/pair-sync.service'; -import { mockContext } from '@/test/utils/context-mock'; import * as data from '@/test/mock-data/context-mock-data'; +import { mockContext } from '@/test/utils/context-mock'; import { cleanDb } from '@/test/utils/db-helper'; // Testing method diff --git a/test/e2e/pairs.e2e-spec.ts b/test/e2e/pairs.e2e-spec.ts index af92308..cb596c9 100644 --- a/test/e2e/pairs.e2e-spec.ts +++ b/test/e2e/pairs.e2e-spec.ts @@ -10,8 +10,8 @@ import { PairDbService } from '@/database/pair/pair-db.service'; import { PrismaService } from '@/database/prisma.service'; import { TokenDbService } from '@/database/token/token-db.service'; import { PairSyncService } from '@/tasks/pair-sync/pair-sync.service'; -import { mockContext } from '@/test/utils/context-mock'; import * as data from '@/test/mock-data/context-mock-data'; +import { mockContext } from '@/test/utils/context-mock'; import { cleanDb, listToken } from '@/test/utils/db-helper'; import { sortByAddress } from '@/test/utils/utils'; diff --git a/test/e2e/tokens.e2e-spec.ts b/test/e2e/tokens.e2e-spec.ts index c2a2e96..7e566de 100644 --- a/test/e2e/tokens.e2e-spec.ts +++ b/test/e2e/tokens.e2e-spec.ts @@ -12,8 +12,8 @@ import { PrismaService } from '@/database/prisma.service'; import { TokenDbService } from '@/database/token/token-db.service'; import { nonNullable } from '@/lib/utils'; import { PairSyncService } from '@/tasks/pair-sync/pair-sync.service'; -import { mockContext } from '@/test/utils/context-mock'; import * as data from '@/test/mock-data/context-mock-data'; +import { mockContext } from '@/test/utils/context-mock'; import { cleanDb, listToken } from '@/test/utils/db-helper'; import { sortByAddress } from '@/test/utils/utils'; diff --git a/test/utils/context-mock.spec.ts b/test/utils/context-mock.spec.ts index dae0f5a..45db3bf 100644 --- a/test/utils/context-mock.spec.ts +++ b/test/utils/context-mock.spec.ts @@ -2,12 +2,12 @@ import ContractWithMethods from '@aeternity/aepp-sdk/es/contract/Contract'; import { mockDeep } from 'jest-mock-extended'; import { Context, PairMethods } from '@/tasks/pair-sync/pair-sync.model'; +import * as data from '@/test/mock-data/context-mock-data'; import { ContextData, mockContext, mockupContractMethod, } from '@/test/utils/context-mock'; -import * as data from '@/test/mock-data/context-mock-data'; describe('Context', () => { it('sample mockup', async () => {