chore(test): 清理测试用例与类型导入

This commit is contained in:
yangjianbo
2026-02-10 00:37:56 +08:00
parent 3fcb0cc37c
commit 29ca1290b3
8 changed files with 20 additions and 71 deletions

View File

@@ -250,7 +250,8 @@ describe('useAppStore', () => {
describe('公开设置加载', () => {
it('从 window.__APP_CONFIG__ 初始化', () => {
;(window as any).__APP_CONFIG__ = {
const windowAny = window as any
windowAny.__APP_CONFIG__ = {
site_name: 'TestSite',
site_logo: '/logo.png',
version: '1.0.0',
@@ -278,7 +279,8 @@ describe('useAppStore', () => {
})
it('clearPublicSettingsCache 清除缓存', () => {
;(window as any).__APP_CONFIG__ = { site_name: 'Test' }
const windowAny = window as any
windowAny.__APP_CONFIG__ = { site_name: 'Test' }
const store = useAppStore()
store.initFromInjectedConfig()