This commit is contained in:
MeSHard
2025-11-10 16:14:42 +08:00
parent 709d6b0399
commit 89369e9cf6
69 changed files with 46811 additions and 0 deletions

6
tests/unit/utils.spec.js Normal file
View File

@@ -0,0 +1,6 @@
import { defaultDocumentTitle, getDocumentTitle } from '@/utils'
it('getDocumentTitle test', () => {
const title = '这是一个测试'
expect(getDocumentTitle(title)).toMatch(`${defaultDocumentTitle} - ${title}`)
})