From f6c64673cd24876b60c1d8327d7a39a61c05ec85 Mon Sep 17 00:00:00 2001 From: Artyom Veremeenko Date: Tue, 28 May 2024 14:50:36 +0300 Subject: [PATCH] fix(tests): ethereum-steth test if trailing spaces trimmed --- .../steth_operation/StethOperation.unit.spec.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ethereum-steth/src/services/steth_operation/StethOperation.unit.spec.ts b/ethereum-steth/src/services/steth_operation/StethOperation.unit.spec.ts index 36aac737..d2dbba1c 100644 --- a/ethereum-steth/src/services/steth_operation/StethOperation.unit.spec.ts +++ b/ethereum-steth/src/services/steth_operation/StethOperation.unit.spec.ts @@ -889,9 +889,10 @@ describe('StethOperationSrv', () => { const expectedShareRateErrFinding = { alertId: 'LIDO-INVARIANT-ERROR', - description: `Prev.shareRate(19061448) = 1.1549004556051977e+27 -Curr.shareRate(19061449) = 1.3098009112103954e+27 -Diff: 1.5490045560519778e+26`, + description: + `Prev.shareRate(19061448) = 1.1549004556051977e+27 \n` + + `Curr.shareRate(19061449) = 1.3098009112103954e+27 \n` + + `Diff: 1.5490045560519778e+26`, name: '🚨🚨🚨 Share rate unexpected has changed', severity: Finding.Severity.CRITICAL, type: Finding.FindingType.SUSPICIOUS, @@ -936,9 +937,10 @@ Diff: 1.5490045560519778e+26`, const expectedShareRateErrFinding = { alertId: 'LIDO-INVARIANT-ERROR', - description: `Prev.shareRate(19061448) = 1.1549004556051977e+27 -Curr.shareRate(19061449) = 1e+27 -Diff: -1.5490045560519778e+26`, + description: + `Prev.shareRate(19061448) = 1.1549004556051977e+27 \n` + + `Curr.shareRate(19061449) = 1e+27 \n` + + `Diff: -1.5490045560519778e+26`, name: '🚨🚨🚨 Share rate unexpected has changed', severity: Finding.Severity.CRITICAL, type: Finding.FindingType.SUSPICIOUS,