Skip to content

Commit

Permalink
fix: eslint import order
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Apr 22, 2024
1 parent ff317e6 commit 14514a5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/tasks/pair-sync/pair-sync.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/pair-sync.service.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/pairs.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tokens.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion test/utils/context-mock.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 14514a5

Please sign in to comment.