From 80cfc7d0feea30e8949c28991862aa918207a608 Mon Sep 17 00:00:00 2001 From: David Racero Date: Thu, 28 Jan 2021 09:51:52 +0100 Subject: [PATCH] Add fixed format scenario test --- package.json | 2 +- test/scenario.spec.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 240f4570..cdabab0e 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ }, "husky": { "hooks": { - "pre-commit": "pretty-quick --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts' --pattern 'test/**/*.ts' --pattern 'tasks/**/*.ts'" + "pre-commit": "pretty-quick --staged --pattern 'contracts/**/*.sol' --pattern 'helpers/**/*.ts' --pattern 'test/**/*.ts' --pattern 'tasks/**/*.ts'" } }, "author": "Aave", diff --git a/test/scenario.spec.ts b/test/scenario.spec.ts index 9826a03d..13037cfb 100644 --- a/test/scenario.spec.ts +++ b/test/scenario.spec.ts @@ -18,8 +18,7 @@ fs.readdirSync(scenarioFolder).forEach((file) => { const scenario = require(`./helpers/scenarios/${file}`); makeSuite(scenario.title, async (testEnv) => { - before('Initializing configuration', - async () => { + before('Initializing configuration', async () => { // Sets BigNumber for this suite, instead of globally BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: BigNumber.ROUND_DOWN });