style: align multiline ternary operators
Backend security / security (push) Successful in 8s
Backend verify / verify (push) Failing after 2m11s
Backend security / security (pull_request) Successful in 8s
Backend verify / verify (pull_request) Failing after 2m17s
Conventional commits / commits (pull_request) Successful in 34s
Backend security / security (push) Successful in 8s
Backend verify / verify (push) Failing after 2m11s
Backend security / security (pull_request) Successful in 8s
Backend verify / verify (pull_request) Failing after 2m17s
Conventional commits / commits (pull_request) Successful in 34s
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user