Skip to content

Commit 3c3abf8

Browse files
committed
Lint
1 parent 3bd9da6 commit 3c3abf8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/unit/specs/mount/options/slots.spec.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ describe('mount.slots', () => {
1212

1313
afterEach(() => {
1414
if (!window.navigator.userAgent.match(/Chrome/i)) {
15-
/* eslint-disable */
16-
window = _window
17-
/* eslint-enable */
15+
window = _window // eslint-disable-line no-native-reassign
1816
}
1917
})
2018

@@ -43,9 +41,7 @@ describe('mount.slots', () => {
4341
if (window.navigator.userAgent.match(/Chrome/i)) {
4442
return
4543
}
46-
/* eslint-disable */
47-
window = { navigator: { userAgent:'PhantomJS' } }
48-
/* eslint-enable */
44+
window = { navigator: { userAgent: 'PhantomJS' }} // eslint-disable-line no-native-reassign
4945
const message = '[vue-test-utils]: option.slots does not support PhantomJS. Please use Puppeteer'
5046
const fn = () => mount(ComponentWithSlots, { slots: { default: 'foo' }})
5147
expect(fn).to.throw().with.property('message', message)

0 commit comments

Comments
 (0)