Use Prettier for JS files (#3913)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Francisco
2023-01-04 11:03:40 -03:00
committed by GitHub
parent 88754d0b36
commit a28aafdc85
135 changed files with 2737 additions and 3121 deletions

View File

@ -33,7 +33,7 @@ contract('SignedMath', function () {
});
describe('average', function () {
function bnAverage (a, b) {
function bnAverage(a, b) {
return a.add(b).divn(2);
}
@ -68,8 +68,10 @@ contract('SignedMath', function () {
for (const x of valuesX) {
for (const y of valuesY) {
expect(await this.math.$average(x, y))
.to.be.bignumber.equal(bnAverage(x, y), `Bad result for average(${x}, ${y})`);
expect(await this.math.$average(x, y)).to.be.bignumber.equal(
bnAverage(x, y),
`Bad result for average(${x}, ${y})`,
);
}
}
});