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

@ -78,15 +78,17 @@ contract('Strings', function () {
});
it('converts MAX_UINT256', async function () {
expect(await this.strings.methods['$toHexString(uint256)'](constants.MAX_UINT256))
.to.equal(web3.utils.toHex(constants.MAX_UINT256));
expect(await this.strings.methods['$toHexString(uint256)'](constants.MAX_UINT256)).to.equal(
web3.utils.toHex(constants.MAX_UINT256),
);
});
});
describe('toHexString fixed', function () {
it('converts a positive number (long)', async function () {
expect(await this.strings.methods['$toHexString(uint256,uint256)'](0x4132, 32))
.to.equal('0x0000000000000000000000000000000000000000000000000000000000004132');
expect(await this.strings.methods['$toHexString(uint256,uint256)'](0x4132, 32)).to.equal(
'0x0000000000000000000000000000000000000000000000000000000000004132',
);
});
it('converts a positive number (short)', async function () {
@ -97,8 +99,9 @@ contract('Strings', function () {
});
it('converts MAX_UINT256', async function () {
expect(await this.strings.methods['$toHexString(uint256,uint256)'](constants.MAX_UINT256, 32))
.to.equal(web3.utils.toHex(constants.MAX_UINT256));
expect(await this.strings.methods['$toHexString(uint256,uint256)'](constants.MAX_UINT256, 32)).to.equal(
web3.utils.toHex(constants.MAX_UINT256),
);
});
});