From 1f3f49325d42407c239d865ee64b7f6f8859f450 Mon Sep 17 00:00:00 2001 From: john-peterson-coinbase Date: Mon, 21 Mar 2022 18:24:14 -0400 Subject: [PATCH] format tests --- test/sourceUpgrade.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/sourceUpgrade.ts b/test/sourceUpgrade.ts index e3df8e8..d33196a 100644 --- a/test/sourceUpgrade.ts +++ b/test/sourceUpgrade.ts @@ -12,20 +12,20 @@ const NUMERATOR_RATIO = "1000000000000000000"; const DENOMINATOR_RATIO = "1000000000000000000"; describe("SourceUprade", function() { - let owner1: SignerWithAddress; - let sourceERC20: PermissionlessERC20; - let destinationERC20: PermissionlessERC20; - let sourceUpgrade: SourceUpgrade; - let sourceUpgradeFactory: SourceUpgrade__factory; + let owner1: SignerWithAddress; + let sourceERC20: PermissionlessERC20; + let destinationERC20: PermissionlessERC20; + let sourceUpgrade: SourceUpgrade; + let sourceUpgradeFactory: SourceUpgrade__factory; - beforeEach(async () => { - [owner1] = await hre.ethers.getSigners(); - const ERC20Factory = await hre.ethers.getContractFactory("PermissionlessERC20"); - sourceERC20 = await ERC20Factory.deploy("Source", "SOURCE"); - destinationERC20 = await ERC20Factory.deploy("Destination", "DESTINATION"); - sourceUpgradeFactory = await hre.ethers.getContractFactory("SourceUpgrade"); - sourceUpgrade = await sourceUpgradeFactory.deploy(sourceERC20.address, destinationERC20.address, UPGRADE_STATUS, DOWNGRADE_STATUS, NUMERATOR_RATIO, DENOMINATOR_RATIO); - }); + beforeEach(async () => { + [owner1] = await hre.ethers.getSigners(); + const ERC20Factory = await hre.ethers.getContractFactory("PermissionlessERC20"); + sourceERC20 = await ERC20Factory.deploy("Source", "SOURCE"); + destinationERC20 = await ERC20Factory.deploy("Destination", "DESTINATION"); + sourceUpgradeFactory = await hre.ethers.getContractFactory("SourceUpgrade"); + sourceUpgrade = await sourceUpgradeFactory.deploy(sourceERC20.address, destinationERC20.address, UPGRADE_STATUS, DOWNGRADE_STATUS, NUMERATOR_RATIO, DENOMINATOR_RATIO); + }); describe("constructor", () => { it("reverts if source and destination addresses are the same", async () => { await expect(sourceUpgradeFactory.deploy(sourceERC20.address, sourceERC20.address, UPGRADE_STATUS, DOWNGRADE_STATUS, NUMERATOR_RATIO, DENOMINATOR_RATIO))