Skip to content

Commit

Permalink
format tests
Browse files Browse the repository at this point in the history
  • Loading branch information
John-peterson-coinbase committed Mar 21, 2022
1 parent fcb7af9 commit 1f3f493
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/sourceUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1f3f493

Please sign in to comment.