Skip to content

Commit 45c3327

Browse files
committed
test: adds missing branch in isvalid
Additionally, clarifies component matching pool test.
1 parent 18de1cf commit 45c3327

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/protocol/integration/amm/ArrakisUniswapV3AmmAdapter.spec.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,18 @@ describe("ArrakisUniswapV3AmmAdapter", () => {
142142
});
143143
});
144144

145-
describe("when the components don't match", async () => {
145+
describe("when the first component doesn't match pool", async () => {
146+
beforeEach(async () => {
147+
subjectComponents = [setup.wbtc.address, setup.dai.address];
148+
});
149+
150+
it("should be an invalid pool", async () => {
151+
const status = await subject();
152+
expect(status).to.be.false;
153+
});
154+
});
155+
156+
describe("when the second components don't match pool", async () => {
146157
beforeEach(async () => {
147158
subjectComponents = [setup.weth.address, setup.wbtc.address];
148159
});

0 commit comments

Comments
 (0)