Commit 09f10445 authored by Sendya's avatar Sendya

fix: util lint

parent 6e5ce3ba
export const setDocumentTitle = function (title) {
document.title = title
const ua = navigator.userAgent
// eslint-disable-next-line
const regex = /\bMicroMessenger\/([\d\.]+)/
if (regex.test(ua) && /ip(hone|od|ad)/i.test(ua)) {
const i = document.createElement('iframe')
i.src = '/favicon.ico'
i.style.display = 'none'
i.onload = function () {
setTimeout(function () {
i.remove()
}, 9)
}
document.body.appendChild(i)
}
}
export const setDocumentTitle = function (title) {
document.title = title
const ua = navigator.userAgent
// eslint-disable-next-line
const regex = /\bMicroMessenger\/([\d\.]+)/
if (regex.test(ua) && /ip(hone|od|ad)/i.test(ua)) {
const i = document.createElement('iframe')
i.src = '/favicon.ico'
i.style.display = 'none'
i.onload = function () {
setTimeout(function () {
i.remove()
}, 9)
}
document.body.appendChild(i)
}
}
import Vue from 'vue'
import { mount } from '@vue/test-utils'
import BlockLayout from '../src/BlockLayout'
describe('BlockLayout', () => {
it('should render BlockLayout', () => {
const wrapper = mount({
render () {
return (
<div>
<BlockLayout>
<span>demo</span>
</BlockLayout>
</div>
)
}
})
expect(wrapper).toMatchSnapshot()
})
})
import Vue from 'vue'
import { mount } from '@vue/test-utils'
import BlockLayout from '../src/BlockLayout'
describe('BlockLayout', () => {
it('should render BlockLayout', () => {
const wrapper = mount({
render () {
return (
<div>
<BlockLayout>
<span>demo</span>
</BlockLayout>
</div>
)
}
})
expect(wrapper).toMatchSnapshot()
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment