Skip to content

Commit e259992

Browse files
committed
test: sync yvUSD expectations on integration branch
1 parent 29559e5 commit e259992

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/pages/vaults/components/yvUSD/YvUsdHeaderBanner.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ describe('YvUsdHeaderBanner', () => {
77
it('renders the mockup copy, links, and shipped banner assets', () => {
88
const html = renderToStaticMarkup(<YvUsdHeaderBanner />)
99

10-
expect(html).toContain('The anti black box vault')
10+
expect(html).toContain('Transparent, Verifiable, Real Yield')
1111
expect(html).toContain(`href="${YVUSD_LEARN_MORE_URL}"`)
1212
expect(html).toContain('yvusd-banner-bg.png')
1313
expect(html).toContain('Learn more')
14+
expect(html).toContain("about Yearn&#x27;s new cross-chain, cross-asset, delta-neutral vault.")
1415
})
1516
})

src/components/pages/vaults/utils/yvUsd.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ describe('getWeightedYvUsdApy', () => {
7070

7171
describe('yvUSD risk override', () => {
7272
it('uses the provisional custom score for the detail risk section', () => {
73-
expect(YVUSD_CUSTOM_RISK_SCORE).toBe('2/5')
74-
expect(YVUSD_RISK_SCORE_ITEMS[0]?.score).toBe('2/5')
73+
expect(YVUSD_CUSTOM_RISK_SCORE).toBe('3/5')
74+
expect(YVUSD_RISK_SCORE_ITEMS[0]?.score).toBe('3/5')
7575
})
7676

7777
it('keeps the current published risk sections intact', () => {

0 commit comments

Comments
 (0)