Add fixed format scenario test

This commit is contained in:
David Racero 2021-01-28 09:51:52 +01:00
parent da0b13757a
commit 80cfc7d0fe
2 changed files with 2 additions and 3 deletions

View File

@ -114,7 +114,7 @@
}, },
"husky": { "husky": {
"hooks": { "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", "author": "Aave",

View File

@ -18,8 +18,7 @@ fs.readdirSync(scenarioFolder).forEach((file) => {
const scenario = require(`./helpers/scenarios/${file}`); const scenario = require(`./helpers/scenarios/${file}`);
makeSuite(scenario.title, async (testEnv) => { makeSuite(scenario.title, async (testEnv) => {
before('Initializing configuration', before('Initializing configuration', async () => {
async () => {
// Sets BigNumber for this suite, instead of globally // Sets BigNumber for this suite, instead of globally
BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: BigNumber.ROUND_DOWN }); BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: BigNumber.ROUND_DOWN });