From a9e6a474483ff711624c7b8e5d7166567db88d77 Mon Sep 17 00:00:00 2001 From: Kellar Date: Fri, 25 Oct 2024 15:05:51 +0100 Subject: [PATCH] update prettier --- .prettierrc | 1 + test/DecentHats_0_1_0.test.ts | 36 +++++++++++++++++------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.prettierrc b/.prettierrc index 937339c..9b687cc 100644 --- a/.prettierrc +++ b/.prettierrc @@ -7,6 +7,7 @@ "semi": true, "arrowParens": "avoid", "singleAttributePerLine": true, + "trailingComma": "all", "overrides": [ { "files": "*.sol", diff --git a/test/DecentHats_0_1_0.test.ts b/test/DecentHats_0_1_0.test.ts index b04bf8f..6f1ef60 100644 --- a/test/DecentHats_0_1_0.test.ts +++ b/test/DecentHats_0_1_0.test.ts @@ -76,7 +76,7 @@ describe('DecentHats_0_1_0', () => { hre.ethers.ZeroAddress, 0, hre.ethers.ZeroAddress, - ] + ], ); const saltNum = BigInt(`0x${Buffer.from(hre.ethers.randomBytes(32)).toString('hex')}`); @@ -85,14 +85,14 @@ describe('DecentHats_0_1_0', () => { createGnosisSetupCalldata, saltNum, gnosisSafeL2SingletonAddress, - gnosisSafeProxyFactory + gnosisSafeProxyFactory, ); gnosisSafeAddress = predictedGnosisSafeAddress; await gnosisSafeProxyFactory.createProxyWithNonce( gnosisSafeL2SingletonAddress, createGnosisSetupCalldata, - saltNum + saltNum, ); gnosisSafe = GnosisSafeL2__factory.connect(predictedGnosisSafeAddress, deployer); @@ -116,7 +116,7 @@ describe('DecentHats_0_1_0', () => { to: gnosisSafeAddress, transactionData: GnosisSafeL2__factory.createInterface().encodeFunctionData( 'enableModule', - [decentHatsAddress] + [decentHatsAddress], ), signers: [dao], }); @@ -178,7 +178,7 @@ describe('DecentHats_0_1_0', () => { }, ], }, - ] + ], ), signers: [dao], }); @@ -227,7 +227,7 @@ describe('DecentHats_0_1_0', () => { }, hats: [], }, - ] + ], ), signers: [dao], }); @@ -259,7 +259,7 @@ describe('DecentHats_0_1_0', () => { i, erc6551Registry, mockHatsAccountImplementationAddress, - mockHatsAddress + mockHatsAddress, ); expect(await topHatAccount.tokenId()).eq(i); @@ -331,7 +331,7 @@ describe('DecentHats_0_1_0', () => { }, ], }, - ] + ], ), signers: [dao], }); @@ -355,7 +355,7 @@ describe('DecentHats_0_1_0', () => { it('Creates a Sablier stream for the hat with stream parameters', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); expect(streamCreatedEvents.length).to.equal(1); @@ -367,14 +367,14 @@ describe('DecentHats_0_1_0', () => { it('Does not create a Sablier stream for hats without stream parameters', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); expect(streamCreatedEvents.length).to.equal(1); // Only one stream should be created }); it('Creates a Sablier stream with correct timestamps', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); expect(streamCreatedEvents.length).to.equal(1); @@ -453,7 +453,7 @@ describe('DecentHats_0_1_0', () => { }, ], }, - ] + ], ), signers: [dao], }); @@ -461,7 +461,7 @@ describe('DecentHats_0_1_0', () => { it('Creates multiple Sablier streams for a single hat', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); expect(streamCreatedEvents.length).to.equal(2); @@ -478,7 +478,7 @@ describe('DecentHats_0_1_0', () => { it('Creates streams with correct parameters', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); const stream1 = await mockSablier.getStream(streamCreatedEvents[0].args.streamId); @@ -494,7 +494,7 @@ describe('DecentHats_0_1_0', () => { it('Creates streams with correct timestamps', async () => { const streamCreatedEvents = await mockSablier.queryFilter( - mockSablier.filters.StreamCreated() + mockSablier.filters.StreamCreated(), ); const stream1 = await mockSablier.getStream(streamCreatedEvents[0].args.streamId); @@ -543,7 +543,7 @@ describe('DecentHats_0_1_0', () => { }, ], }, - ] + ], ), signers: [dao], }); @@ -586,7 +586,7 @@ describe('DecentHats_0_1_0', () => { await erc6551Registry.getAddress(), mockHatsAccountImplementationAddress, '0x5d0e6ce4fd951366cc55da93f6e79d8b81483109d79676a04bcc2bed6a4b5072', - ] + ], ), signers: [dao], }); @@ -595,7 +595,7 @@ describe('DecentHats_0_1_0', () => { it('Emits an ExecutionSuccess event', async () => { await expect(createHatAndAccountAndMintAndStreamsTx).to.emit( gnosisSafe, - 'ExecutionSuccess' + 'ExecutionSuccess', ); });