From 78023ae5c39fc0642f82b8d243caf5cb49f0a2f5 Mon Sep 17 00:00:00 2001 From: emilio Date: Thu, 13 Aug 2020 15:37:11 +0200 Subject: [PATCH] Fixed redeem negatives --- test/helpers/scenarios/redeem-negatives.json | 19 ++++++++++++++++++- test/scenario.spec.ts | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/test/helpers/scenarios/redeem-negatives.json b/test/helpers/scenarios/redeem-negatives.json index a0dc2e40..12ce083b 100644 --- a/test/helpers/scenarios/redeem-negatives.json +++ b/test/helpers/scenarios/redeem-negatives.json @@ -60,8 +60,25 @@ ] }, { - "description": "Users 1 deposits 1 ETH, borrows 100 DAI, tries to redeem the 1 ETH deposited (revert expected)", + "description": "Users 1 deposits 1 WETH, borrows 100 DAI, tries to redeem the 1 WETH deposited (revert expected)", "actions": [ + { + "name": "mint", + "args": { + "reserve": "WETH", + "amount": "1", + "user": "1" + }, + "expected": "success" + }, + { + "name": "approve", + "args": { + "reserve": "WETH", + "user": "1" + }, + "expected": "success" + }, { "name": "deposit", "args": { diff --git a/test/scenario.spec.ts b/test/scenario.spec.ts index 0da00993..f5c13b6d 100644 --- a/test/scenario.spec.ts +++ b/test/scenario.spec.ts @@ -12,7 +12,7 @@ BigNumber.config({DECIMAL_PLACES: 0, ROUNDING_MODE: BigNumber.ROUND_DOWN}); const scenarioFolder = './test/helpers/scenarios/'; -const selectedScenarios: string[] = ['redeem.json']; +const selectedScenarios: string[] = ['redeem-negatives.json']; fs.readdirSync(scenarioFolder).forEach((file) => { if (selectedScenarios.length > 0 && !selectedScenarios.includes(file)) return;