From 554fca9ee69b51eee265786b304d09de606297e0 Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Tue, 12 Apr 2022 12:23:19 +0100 Subject: [PATCH] Prettier --- .../inboxMultisigValidatorManager.test.ts | 26 ++++--------------- .../outboxMultisigValidatorManager.test.ts | 19 +++++--------- 2 files changed, 12 insertions(+), 33 deletions(-) diff --git a/solidity/core/test/validator-manager/inboxMultisigValidatorManager.test.ts b/solidity/core/test/validator-manager/inboxMultisigValidatorManager.test.ts index 89bfdaacc..041df1cda 100644 --- a/solidity/core/test/validator-manager/inboxMultisigValidatorManager.test.ts +++ b/solidity/core/test/validator-manager/inboxMultisigValidatorManager.test.ts @@ -25,11 +25,7 @@ describe.only('InboxMultisigValidatorManager', () => { before(async () => { const signers = await ethers.getSigners(); [signer] = signers; - const [ - , - validatorSigner0, - validatorSigner1, - ] = signers; + const [, validatorSigner0, validatorSigner1] = signers; validator0 = await Validator.fromSigner(validatorSigner0, OUTBOX_DOMAIN); validator1 = await Validator.fromSigner(validatorSigner1, OUTBOX_DOMAIN); }); @@ -65,16 +61,9 @@ describe.only('InboxMultisigValidatorManager', () => { [validator0, validator1], // 2/2 signers, making a quorum ); - await validatorManager.checkpoint( - inbox.address, - root, - index, - signatures, - ); - - expect( - await inbox.checkpoints(root) - ).to.equal(index); + await validatorManager.checkpoint(inbox.address, root, index, signatures); + + expect(await inbox.checkpoints(root)).to.equal(index); }); it('reverts if there is not a quorum', async () => { @@ -85,12 +74,7 @@ describe.only('InboxMultisigValidatorManager', () => { ); await expect( - validatorManager.checkpoint( - inbox.address, - root, - index, - signatures, - ) + validatorManager.checkpoint(inbox.address, root, index, signatures), ).to.be.revertedWith('!quorum'); }); }); diff --git a/solidity/core/test/validator-manager/outboxMultisigValidatorManager.test.ts b/solidity/core/test/validator-manager/outboxMultisigValidatorManager.test.ts index 75adc2d84..a4d567626 100644 --- a/solidity/core/test/validator-manager/outboxMultisigValidatorManager.test.ts +++ b/solidity/core/test/validator-manager/outboxMultisigValidatorManager.test.ts @@ -66,12 +66,7 @@ describe('OutboxMultisigValidatorManager', () => { ), ) .to.emit(validatorManager, 'ImproperCheckpoint') - .withArgs( - outbox.address, - root, - index, - signatures, - ); + .withArgs(outbox.address, root, index, signatures); expect(await outbox.state()).to.equal(types.AbacusState.FAILED); }); @@ -81,14 +76,14 @@ describe('OutboxMultisigValidatorManager', () => { index, [validator0], // 1/2 signers is not a quorum ); - + await expect( validatorManager.improperCheckpoint( outbox.address, root, index, - signatures - ) + signatures, + ), ).to.be.revertedWith('!quorum'); }); @@ -107,14 +102,14 @@ describe('OutboxMultisigValidatorManager', () => { index.toNumber(), [validator0, validator1], // 2/2 signers, making a quorum ); - + await expect( validatorManager.improperCheckpoint( outbox.address, root, index, - signatures - ) + signatures, + ), ).to.be.revertedWith('!improper'); }); });