fix(site): 修复解忧站点图标
This commit is contained in:
@@ -7,7 +7,7 @@ export const dachuiSite: SiteBrand = {
|
||||
name: '大锤商行',
|
||||
mark: '锤',
|
||||
themeColor: '#ff6a00',
|
||||
favicon: '',
|
||||
favicon: '/apple-touch-icon.png',
|
||||
storefrontText: defaultStorefrontText,
|
||||
logos: {
|
||||
light: '',
|
||||
|
||||
@@ -7,6 +7,7 @@ describe('site branding registry', () => {
|
||||
expect(resolveSiteKey('jieyou')).toBe('jieyou')
|
||||
expect(siteBrandFor('jieyou').name).toBe('解忧商行')
|
||||
expect(siteBrandFor('jieyou').logos.seal).toMatch(/^data:image\/svg\+xml/)
|
||||
expect(siteBrandFor('jieyou').favicon).toMatch(/^data:image\/svg\+xml/)
|
||||
})
|
||||
|
||||
it('falls back to Dachui for main, legacy distribution and ops contexts', () => {
|
||||
@@ -14,5 +15,6 @@ describe('site branding registry', () => {
|
||||
expect(resolveSiteKey('')).toBe('dachui')
|
||||
expect(resolveSiteKey('legacy_site')).toBe('dachui')
|
||||
expect(siteBrandFor('').mark).toBe('锤')
|
||||
expect(siteBrandFor('').favicon).toBe('/apple-touch-icon.png')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user