init
This commit is contained in:
6
tests/unit/utils.spec.js
Normal file
6
tests/unit/utils.spec.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { defaultDocumentTitle, getDocumentTitle } from '@/utils'
|
||||
|
||||
it('getDocumentTitle test', () => {
|
||||
const title = '这是一个测试'
|
||||
expect(getDocumentTitle(title)).toMatch(`${defaultDocumentTitle} - ${title}`)
|
||||
})
|
||||
Reference in New Issue
Block a user