This commit is contained in:
imccyu
2026-08-13 18:14:13 +08:00
parent 0f1c29c751
commit 42c359e57b
2 changed files with 2 additions and 2 deletions
@@ -26,7 +26,7 @@ export function OnboardingModal({
useEffect(() => { useEffect(() => {
const appRoot = document.getElementById('root') const appRoot = document.getElementById('root')
if (appRoot === null) return if (appRoot === null) return
const previous = appRoot.inert === true const previous = appRoot.inert
appRoot.inert = true appRoot.inert = true
return () => { appRoot.inert = previous } return () => { appRoot.inert = previous }
}, []) }, [])
@@ -91,7 +91,7 @@ describe('WelcomeNoticeStore', () => {
const nonError = new WelcomeNoticeStore({ const nonError = new WelcomeNoticeStore({
// Durable/wire failures are unknown; exercise containment of a non-Error rejection. // Durable/wire failures are unknown; exercise containment of a non-Error rejection.
settings: { describe: () => Promise.reject('offline string') }, settings: { describe: () => Promise.reject(new Error('offline string')) },
} as never) } as never)
await nonError.load() await nonError.load()
expect(nonError.store.getSnapshot().error).toBe('offline string') expect(nonError.store.getSnapshot().error).toBe('offline string')