Skip to content

Commit aac5e7e

Browse files
committed
Apply prettier formatting to test files
1 parent 4b2221d commit aac5e7e

4 files changed

Lines changed: 8 additions & 23 deletions

File tree

solidity/ecdsa/test/Allowlist.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ describe("Allowlist", () => {
9494
const ERC1967ProxyFactory = await ethers.getContractFactory(
9595
"ERC1967Proxy"
9696
)
97-
await expect(
98-
ERC1967ProxyFactory.deploy(impl.address, initData)
99-
).to.be.reverted
97+
await expect(ERC1967ProxyFactory.deploy(impl.address, initData)).to.be
98+
.reverted
10099
})
101100
})
102101

solidity/ecdsa/test/WalletRegistry.DualMode.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ describe("WalletRegistry - Dual-Mode Authorization", () => {
8181
[dkgValidator.address, randomBeacon.address, reimbursementPool.address]
8282
)
8383

84-
const ERC1967ProxyFactory =
85-
await ethers.getContractFactory("ERC1967Proxy")
84+
const ERC1967ProxyFactory = await ethers.getContractFactory("ERC1967Proxy")
8685
const proxy = await ERC1967ProxyFactory.deploy(impl.address, initData)
8786
await proxy.deployed()
8887

solidity/ecdsa/test/WalletRegistry.Slashing.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ describe("WalletRegistry - Slashing", () => {
180180
// The notifier receives 0 reward.
181181
const receivedReward = notifierBalanceAfter.sub(notifierBalanceBefore)
182182

183-
expect(receivedReward).to.equal(
184-
0
185-
)
183+
expect(receivedReward).to.equal(0)
186184
})
187185
})
188186

solidity/ecdsa/test/WalletRegistry.WalletCreation.test.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,9 +1730,7 @@ describe("WalletRegistry - Wallet Creation", async () => {
17301730
walletRegistry
17311731
.connect(thirdParty)
17321732
.approveDkgResult(dkgResult)
1733-
).to.be.revertedWith(
1734-
"Only submitter can approve now"
1735-
)
1733+
).to.be.revertedWith("Only submitter can approve now")
17361734
})
17371735
}
17381736
)
@@ -2442,10 +2440,7 @@ describe("WalletRegistry - Wallet Creation", async () => {
24422440
it("should reward the notifier", async () => {
24432441
await expect(challengeTx)
24442442
.to.emit(staking, "NotifierRewarded")
2445-
.withArgs(
2446-
thirdParty.address,
2447-
0
2448-
)
2443+
.withArgs(thirdParty.address, 0)
24492444
})
24502445

24512446
it("should slash malicious result submitter", async () => {
@@ -2520,10 +2515,7 @@ describe("WalletRegistry - Wallet Creation", async () => {
25202515
it("should reward the notifier", async () => {
25212516
await expect(challengeTx)
25222517
.to.emit(staking, "NotifierRewarded")
2523-
.withArgs(
2524-
thirdParty.address,
2525-
0
2526-
)
2518+
.withArgs(thirdParty.address, 0)
25272519
})
25282520

25292521
it("should slash malicious result submitter", async () => {
@@ -2634,10 +2626,7 @@ describe("WalletRegistry - Wallet Creation", async () => {
26342626
it("should reward the notifier", async () => {
26352627
await expect(challengeTx)
26362628
.to.emit(staking, "NotifierRewarded")
2637-
.withArgs(
2638-
thirdParty.address,
2639-
0
2640-
)
2629+
.withArgs(thirdParty.address, 0)
26412630
})
26422631

26432632
it("should slash malicious result submitter", async () => {

0 commit comments

Comments
 (0)