Skip to content

Conversation

@juangm
Copy link
Contributor

@juangm juangm commented Jul 23, 2025

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given an Aave Market reserve
When fetching the reserve data
Then it should return the expected reserve details

When fetching supply APY history for it
Then it should return a time series for the specified time window

When fetching borrow APY history for it
Then it should return a time series for the specified time window

Comment on lines 52 to 57
expect.arrayContaining([
expect.objectContaining({
avgRate: expect.any(Object),
date: expect.any(String),
}),
]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result.value.map(() => expect.objectContaining({
avgRate: {
// TODO try to match a reasonable BigDecimal precision
},
date: expect.toBeBetween(startDate, endDate)
}))

@cesarenaldi cesarenaldi merged commit ddd3064 into main Jul 23, 2025
1 of 2 checks passed
@cesarenaldi cesarenaldi deleted the juan/reserve-test branch July 23, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants