Skip to content

Commit 2188677

Browse files
committed
style(contracts): format code with prettier
1 parent a2e31b7 commit 2188677

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

packages/contracts/test/Semaphore.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ describe("Semaphore", () => {
5050
.connect(signers[1])
5151
["createGroup(uint256,uint256,address)"](groupId, treeDepth, accounts[1])
5252

53-
await expect(transaction).to.emit(semaphoreContract, "GroupCreated").withArgs(groupId, treeDepth, group.zeroValue)
53+
await expect(transaction)
54+
.to.emit(semaphoreContract, "GroupCreated")
55+
.withArgs(groupId, treeDepth, group.zeroValue)
5456
await expect(transaction)
5557
.to.emit(semaphoreContract, "GroupAdminUpdated")
5658
.withArgs(groupId, constants.AddressZero, accounts[1])
@@ -59,17 +61,21 @@ describe("Semaphore", () => {
5961
it("Should create a group with a custom Merkle tree root expiration", async () => {
6062
const groupId = 2
6163
const group = new Group(2)
62-
const transaction = await semaphoreContract.connect(signers[1])["createGroup(uint256,uint256,address,uint256)"](
63-
groupId,
64-
treeDepth,
65-
accounts[0],
66-
5 // 5 seconds.
67-
)
68-
await contract.addMember(groupId, members[0])
69-
await contract.addMember(groupId, members[1])
70-
await contract.addMember(groupId, members[2])
64+
const transaction = await semaphoreContract
65+
.connect(signers[1])
66+
["createGroup(uint256,uint256,address,uint256)"](
67+
groupId,
68+
treeDepth,
69+
accounts[0],
70+
5 // 5 seconds.
71+
)
72+
await semaphoreContract.addMember(groupId, members[0])
73+
await semaphoreContract.addMember(groupId, members[1])
74+
await semaphoreContract.addMember(groupId, members[2])
7175

72-
await expect(transaction).to.emit(semaphoreContract, "GroupCreated").withArgs(groupId, treeDepth, group.zeroValue)
76+
await expect(transaction)
77+
.to.emit(semaphoreContract, "GroupCreated")
78+
.withArgs(groupId, treeDepth, group.zeroValue)
7379
await expect(transaction)
7480
.to.emit(semaphoreContract, "GroupAdminUpdated")
7581
.withArgs(groupId, constants.AddressZero, accounts[0])

0 commit comments

Comments
 (0)