codex/broker-operations-ui #18
@ -3,7 +3,6 @@ import type { BrokerOperation, BrokerPosition } from '../../api/responses';
|
||||
import {
|
||||
getBrokerInstrumentPath,
|
||||
getBrokerOperationImpact,
|
||||
getBrokerOperationImpactLabel,
|
||||
getBrokerOperationTypeLabel,
|
||||
getBrokerPositionGroup,
|
||||
} from './brokerDisplay';
|
||||
@ -191,11 +190,4 @@ describe('broker display helpers', () => {
|
||||
),
|
||||
).toBe('adds');
|
||||
});
|
||||
|
||||
it('provides Russian impact labels', () => {
|
||||
expect(getBrokerOperationImpactLabel('adds')).toBe('Пополняет');
|
||||
expect(getBrokerOperationImpactLabel('reduces')).toBe('Списывает');
|
||||
expect(getBrokerOperationImpactLabel('neutral')).toBe('Перекладка');
|
||||
expect(getBrokerOperationImpactLabel('unknown')).toBe('Неясно');
|
||||
});
|
||||
});
|
||||
|
||||
@ -161,16 +161,3 @@ export function getBrokerOperationImpact(
|
||||
|
||||
return 'unknown';
|
||||
}
|
||||
|
||||
export function getBrokerOperationImpactLabel(impact: BrokerOperationImpact): string {
|
||||
switch (impact) {
|
||||
case 'adds':
|
||||
return 'Пополняет';
|
||||
case 'reduces':
|
||||
return 'Списывает';
|
||||
case 'neutral':
|
||||
return 'Перекладка';
|
||||
case 'unknown':
|
||||
return 'Неясно';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user