mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Add fixed format scenario test
This commit is contained in:
parent
da0b13757a
commit
80cfc7d0fe
|
@ -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",
|
||||||
|
|
|
@ -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 });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user