From 52033bae21518bbed67ef54a9142cd3d4c3655b0 Mon Sep 17 00:00:00 2001 From: The3D Date: Fri, 18 Sep 2020 18:03:38 +0200 Subject: [PATCH] Added console logs --- test/helpers/actions.ts | 4 ++++ test/scenario.spec.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/helpers/actions.ts b/test/helpers/actions.ts index ba874e6e..4921e66c 100644 --- a/test/helpers/actions.ts +++ b/test/helpers/actions.ts @@ -377,9 +377,13 @@ export const borrow = async ( console.log("total stable debt actual: ", reserveDataAfter.totalStableDebt.toFixed()); console.log("total stable debt expected: ", expectedReserveData.totalStableDebt.toFixed()); + console.log("total avg stable rate actual: ", reserveDataAfter.averageStableBorrowRate.toFixed()); + console.log("total avg stable rate expected: ", expectedReserveData.averageStableBorrowRate.toFixed()); console.log("total variable debt actual: ", reserveDataAfter.totalVariableDebt.toFixed()); console.log("total variable debt expected: ", expectedReserveData.totalVariableDebt.toFixed()); + console.log("variable borrow rate actual: ", reserveDataAfter.variableBorrowRate.toFixed()); + console.log("variable borrow rate expected: ", expectedReserveData.variableBorrowRate.toFixed()); expectEqual(reserveDataAfter, expectedReserveData); expectEqual(userDataAfter, expectedUserData); diff --git a/test/scenario.spec.ts b/test/scenario.spec.ts index 98e0c164..d9edd4ac 100644 --- a/test/scenario.spec.ts +++ b/test/scenario.spec.ts @@ -10,7 +10,7 @@ import {executeStory} from './helpers/scenario-engine'; const scenarioFolder = './test/helpers/scenarios/'; -const selectedScenarios: string[] = ['borrow-repay-variable.json']; +const selectedScenarios: string[] = ['borrow-repay-stable.json']; fs.readdirSync(scenarioFolder).forEach((file) => { if (selectedScenarios.length > 0 && !selectedScenarios.includes(file)) return;