Skip to content

Commit 8da1a57

Browse files
committed
Update forked tests for UniswapExchangeAdapter changes
1 parent 77ed88b commit 8da1a57

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"rename-extensions": "for f in typechain/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.ts\"; done",
3535
"test": "npx hardhat test --network localhost",
3636
"test:fork": "FORK=true npx hardhat test",
37+
"test:fork:fast": "NO_COMPILE=true TS_NODE_TRANSPILE_ONLY=1 FORK=true npx hardhat test --no-compile",
3738
"test:clean": "yarn clean && yarn build && yarn test",
3839
"test:fast": "NO_COMPILE=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --network localhost --no-compile",
3940
"test:fast:compile": "TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --network localhost",

test/integration/sushiswapExchangeTradeModule.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ describe("SushiSwap TradeModule Integration [ @forked-mainnet ]", () => {
151151
subjectAdapterName = uniswapAdapterV2Name;
152152

153153
const tradePath = [subjectSourceToken, subjectDestinationToken];
154-
const shouldSwapForExactToken = false;
155154

155+
const shouldSwapExactTokenForToken = true;
156156
subjectData = await uniswapExchangeAdapterV2.getUniswapExchangeData(
157157
tradePath,
158-
shouldSwapForExactToken
158+
shouldSwapExactTokenForToken
159159
);
160+
160161
subjectCaller = manager;
161162
});
162163

test/integration/uniswapV2ExchangeTradeModule.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ describe("UniswapExchangeV2 TradeModule Integration [ @forked-mainnet ]", () =>
151151
subjectAdapterName = uniswapAdapterV2Name;
152152

153153
const tradePath = [subjectSourceToken, subjectDestinationToken];
154-
const shouldSwapForExactToken = false;
154+
const shouldSwapExactTokenForToken = true;
155155

156156
subjectData = await uniswapExchangeAdapterV2.getUniswapExchangeData(
157157
tradePath,
158-
shouldSwapForExactToken
158+
shouldSwapExactTokenForToken
159159
);
160160
subjectCaller = manager;
161161
});

0 commit comments

Comments
 (0)