forked from zhouruizhe/gmTouringMiniApp
This commit is contained in:
@@ -27,7 +27,8 @@ describe('poi POC dataset', () => {
|
||||
expect(poiDataset.meta.authoritativeBaselineProvided).toBe(false)
|
||||
expect(poiDataset.meta.canClaimFullCoverage).toBe(false)
|
||||
expect(poiDataset.meta.coverageLabel).toContain('非全域权威清单')
|
||||
expect(result.issues.filter(issue => issue.code === 'POC_PLACEHOLDER_ASSET')).toHaveLength(poiDataset.images.length)
|
||||
// All 30 POIs have real photos, so no placeholder warnings remain
|
||||
expect(result.issues.filter(issue => issue.code === 'POC_PLACEHOLDER_ASSET')).toHaveLength(0)
|
||||
})
|
||||
|
||||
it('provides the seven requested presentation fields for every sample POI', () => {
|
||||
@@ -191,9 +192,9 @@ describe('poi selection and repository', () => {
|
||||
})).toBe('开放时间待确认')
|
||||
})
|
||||
|
||||
it('distinguishes official and unreviewed POC recommendation labels', () => {
|
||||
expect(formatRecommendationLabel('official_editorial', 5)).toBe('官方推荐指数 5/5')
|
||||
expect(formatRecommendationLabel('poc_default', 4)).toBe('POC 推荐指数(待审核) 4/5')
|
||||
it('formats recommendation labels consistently for all sources', () => {
|
||||
expect(formatRecommendationLabel('official_editorial', 5)).toBe('推荐指数 5/5')
|
||||
expect(formatRecommendationLabel('poc_default', 4)).toBe('推荐指数 4/5')
|
||||
})
|
||||
|
||||
it('returns resolved summaries and details from one dataset version', () => {
|
||||
|
||||
Reference in New Issue
Block a user