Added console logs

This commit is contained in:
The3D 2020-09-18 18:03:38 +02:00
parent 5868a4844f
commit 52033bae21
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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;