style(frontend): 格式化 listingDisplay 单测以通过 pre-push Prettier 检查
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,8 +57,8 @@ describe('号主纯币价格读取', () => {
|
|||||||
it('缺少价格快照时返回 0,供调用方展示占位符', () => {
|
it('缺少价格快照时返回 0,供调用方展示占位符', () => {
|
||||||
expect(getListingSellerCoinPrice(buildListing())).toBe(0)
|
expect(getListingSellerCoinPrice(buildListing())).toBe(0)
|
||||||
expect(getListingSellerCoinPrice(buildListing({}))).toBe(0)
|
expect(getListingSellerCoinPrice(buildListing({}))).toBe(0)
|
||||||
expect(
|
expect(getListingSellerCoinPrice(buildListing({ price_breakdown: { seller_ratio: 43 } }))).toBe(
|
||||||
getListingSellerCoinPrice(buildListing({ price_breakdown: { seller_ratio: 43 } }))
|
0
|
||||||
).toBe(0)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user