style: align multiline ternary operators

This commit is contained in:
2026-09-28 16:37:01 +03:00
committed by ksv741
parent b78c215ff1
commit 183b7f1efd
54 changed files with 986 additions and 982 deletions
+12 -12
View File
@@ -58,9 +58,9 @@ describe('T-Bank persisted read budget', () => {
const operations = Array.from({ length: 100_000 }, (_, index) => {
// 1,000 measured-month rows, 200 income receipts, remaining rows over 10 years.
const time =
index < 1000 ?
Date.UTC(2026, 7, 1) + index * 2_500_000 :
Date.UTC(2016, 8, 1) + (index - 1000) * 3_160_000;
index < 1000
? Date.UTC(2026, 7, 1) + index * 2_500_000
: Date.UTC(2016, 8, 1) + (index - 1000) * 3_160_000;
const instrument = instruments[index % instruments.length];
return {
id: `operation-${index}`,
@@ -298,9 +298,9 @@ describe('T-Bank persisted read budget', () => {
uid: instrument.uid,
ticker: instrument.ticker,
instrumentType:
instrument.instrumentKind === 'INSTRUMENT_TYPE_SHARE' ?
'share' :
'bond',
instrument.instrumentKind === 'INSTRUMENT_TYPE_SHARE'
? 'share'
: 'bond',
metadata: instrument,
fetchedAt: now,
},
@@ -487,13 +487,13 @@ describe('T-Bank persisted read budget', () => {
runtime: process.version,
hardware: {
cpuQuota:
process.platform === 'linux' ?
readFileSync('/sys/fs/cgroup/cpu.max', 'utf8').trim() :
null,
process.platform === 'linux'
? readFileSync('/sys/fs/cgroup/cpu.max', 'utf8').trim()
: null,
memoryLimit:
process.platform === 'linux' ?
readFileSync('/sys/fs/cgroup/memory.max', 'utf8').trim() :
null,
process.platform === 'linux'
? readFileSync('/sys/fs/cgroup/memory.max', 'utf8').trim()
: null,
cpu: cpus()[0]?.model,
cpus: cpus().length,
memoryBytes: totalmem(),