Skip to content

Commit

Permalink
test(cpp): actually use get assets derp
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Jan 10, 2022
1 parent 85cef3e commit 9417032
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/constant-product/ConstantProduct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe("Constant Product Pool", () => {
});

describe("#getAssets", function () {
it("returns the assets the pool was deployed with", async () => {
it("returns the assets the pool was deployed with, and in the correct order", async () => {
const ConstantProductPool = await ethers.getContractFactory<ConstantProductPool__factory>("ConstantProductPool");
const masterDeployer = await ethers.getContract<MasterDeployer>("MasterDeployer");
const deployData = ethers.utils.defaultAbiCoder.encode(
Expand All @@ -97,8 +97,10 @@ describe("Constant Product Pool", () => {
const constantProductPool = await ConstantProductPool.deploy(deployData, masterDeployer.address);
await constantProductPool.deployed();

expect(await constantProductPool.token0(), "0x0000000000000000000000000000000000000001");
expect(await constantProductPool.token1(), "0x0000000000000000000000000000000000000002");
const assets = await constantProductPool.getAssets();

await expect(assets[0], "0x0000000000000000000000000000000000000001");
await expect(assets[1], "0x0000000000000000000000000000000000000002");
});
});

Expand Down

0 comments on commit 9417032

Please sign in to comment.