chore: strengthen backend eslint profile
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import type { Server } from 'node:http';
|
||||
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import type { Server } from 'node:http';
|
||||
import assert from 'node:assert/strict';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { configureApp } from '../src/main';
|
||||
import { PrismaService } from '../src/prisma/prisma.service';
|
||||
import { TbankClient } from '../src/integrations/tbank/tbank.client';
|
||||
import { moscowDate } from '../src/modules/investments/investment-calendar';
|
||||
import { configureApp } from '../src/main';
|
||||
import {
|
||||
IncomeAnalyticsResourceDto,
|
||||
IncomeSummaryResourceDto,
|
||||
} from '../src/modules/investments/income/income-analytics.dto';
|
||||
import { moscowDate } from '../src/modules/investments/investment-calendar';
|
||||
import { BrokerageOperationsRepository } from '../src/modules/investments/operations/infrastructure/brokerage-operations.repository';
|
||||
import { PrismaService } from '../src/prisma/prisma.service';
|
||||
|
||||
// Financial proof uses real persisted rows/coverage and the configured HTTP boundary.
|
||||
describe('local income completeness and exact money (SQLite)', () => {
|
||||
@@ -102,7 +104,7 @@ describe('local income completeness and exact money (SQLite)', () => {
|
||||
['same', '10', 1, 'rub', 'OPERATION_TYPE_COUPON'],
|
||||
['negative', '-2', -500000000, 'rub', 'OPERATION_TYPE_DIVIDEND'],
|
||||
['usd', '3', 0, 'usd', 'OPERATION_TYPE_COUPON'],
|
||||
] as const)
|
||||
] as const) {
|
||||
await prisma.tbankOperation.create({
|
||||
data: {
|
||||
userId: 'income-owner',
|
||||
@@ -119,6 +121,7 @@ describe('local income completeness and exact money (SQLite)', () => {
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
it('returns exact selected sums without a false zero comparison; reopen and observe need no RPC', async () => {
|
||||
|
||||
Reference in New Issue
Block a user