7 lines
226 B
JavaScript
7 lines
226 B
JavaScript
import { defaultDocumentTitle, getDocumentTitle } from '@/utils'
|
|
|
|
it('getDocumentTitle test', () => {
|
|
const title = '这是一个测试'
|
|
expect(getDocumentTitle(title)).toMatch(`${defaultDocumentTitle} - ${title}`)
|
|
})
|