chore(test): 清理测试用例与类型导入
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user