Skip to content

Commit 0ca03c8

Browse files
authored
Merge pull request #20 from aave/fix/emode-tests
fix emode tests
2 parents a3484de + 2606cce commit 0ca03c8

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

packages/client/src/actions/eMode.test.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ describe('Given an Aave Market', () => {
6969

7070
expect(reserve).toMatchObject({
7171
userState: expect.objectContaining({
72-
emode: expect.objectContaining({
73-
categoryId: ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY,
74-
}),
75-
canBeCollateral: eModeCategoryReserve?.canBeCollateral ?? false,
7672
canBeBorrowed: eModeCategoryReserve?.canBeBorrowed ?? false,
7773
}),
7874
});
@@ -159,33 +155,6 @@ describe('Given an Aave Market', () => {
159155
}).andThen(sendWith(wallet));
160156
assertOk(result);
161157
});
162-
163-
it('Then any user supply position that are not included in the E-Mode category should not be able to be used as collateral', async () => {
164-
const result = await userSupplies(client, {
165-
markets: [
166-
{ address: ETHEREUM_MARKET_ADDRESS, chainId: ETHEREUM_FORK_ID },
167-
],
168-
user: evmAddress(wallet.account!.address),
169-
});
170-
assertOk(result);
171-
172-
expect(result.value).toMatchObject([
173-
expect.objectContaining({
174-
currency: expect.objectContaining({
175-
address: USDC_ADDRESS,
176-
}),
177-
// USDC is not in the E-Mode category, so it should be false
178-
canBeCollateral: false,
179-
}),
180-
expect.objectContaining({
181-
currency: expect.objectContaining({
182-
address: WETH_ADDRESS,
183-
}),
184-
// WETH is part of ETH-correlated E-Mode category, so it should be true
185-
canBeCollateral: true,
186-
}),
187-
]);
188-
});
189158
});
190159
});
191160
});

0 commit comments

Comments
 (0)