style(FEAT-DS-001): 统一超短行情代码格式
This commit is contained in:
@@ -4,7 +4,10 @@ import request from 'supertest';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import { ShortTermMarketController } from '../src/market-overview/short-term.controller';
|
||||
import { AKTOOLS_CLIENT_PORT, ShortTermMarketService } from '../src/market-overview/short-term.service';
|
||||
import {
|
||||
AKTOOLS_CLIENT_PORT,
|
||||
ShortTermMarketService,
|
||||
} from '../src/market-overview/short-term.service';
|
||||
|
||||
describe('短线行情 HTTP API', () => {
|
||||
let app: INestApplication | undefined;
|
||||
@@ -31,10 +34,7 @@ describe('短线行情 HTTP API', () => {
|
||||
};
|
||||
const moduleRef = await Test.createTestingModule({
|
||||
controllers: [ShortTermMarketController],
|
||||
providers: [
|
||||
ShortTermMarketService,
|
||||
{ provide: AKTOOLS_CLIENT_PORT, useValue: client },
|
||||
],
|
||||
providers: [ShortTermMarketService, { provide: AKTOOLS_CLIENT_PORT, useValue: client }],
|
||||
}).compile();
|
||||
app = moduleRef.createNestApplication();
|
||||
app.setGlobalPrefix('api/v1');
|
||||
@@ -61,10 +61,7 @@ describe('短线行情 HTTP API', () => {
|
||||
};
|
||||
const moduleRef = await Test.createTestingModule({
|
||||
controllers: [ShortTermMarketController],
|
||||
providers: [
|
||||
ShortTermMarketService,
|
||||
{ provide: AKTOOLS_CLIENT_PORT, useValue: client },
|
||||
],
|
||||
providers: [ShortTermMarketService, { provide: AKTOOLS_CLIENT_PORT, useValue: client }],
|
||||
}).compile();
|
||||
app = moduleRef.createNestApplication();
|
||||
app.setGlobalPrefix('api/v1');
|
||||
|
||||
Reference in New Issue
Block a user