chore: fix typo (#2108)

This commit is contained in:
Bierxiensi 2023-06-25 15:11:46 +08:00 committed by GitHub
parent b2e71850f8
commit 55b3681bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import 'jsdom-worker';
import { vi } from 'vitest'; import { vi } from 'vitest';
import '../packages/core/client/src/i18n'; import '../packages/core/client/src/i18n';
// 解决 ypeError: window.matchMedia is not a function // 解决 TypeError: window.matchMedia is not a function
// 参见: https://github.com/vitest-dev/vitest/issues/821#issuecomment-1046954558 // 参见: https://github.com/vitest-dev/vitest/issues/821#issuecomment-1046954558
Object.defineProperty(window, 'matchMedia', { Object.defineProperty(window, 'matchMedia', {
writable: true, writable: true,