File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
test/unit/specs/mount/options Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ describe('mount.slots', () => {
12
12
13
13
afterEach ( ( ) => {
14
14
if ( ! window . navigator . userAgent . match ( / C h r o m e / i) ) {
15
- /* eslint-disable */
16
- window = _window
17
- /* eslint-enable */
15
+ window = _window // eslint-disable-line no-native-reassign
18
16
}
19
17
} )
20
18
@@ -43,9 +41,7 @@ describe('mount.slots', () => {
43
41
if ( window . navigator . userAgent . match ( / C h r o m e / i) ) {
44
42
return
45
43
}
46
- /* eslint-disable */
47
- window = { navigator : { userAgent :'PhantomJS' } }
48
- /* eslint-enable */
44
+ window = { navigator : { userAgent : 'PhantomJS' } } // eslint-disable-line no-native-reassign
49
45
const message = '[vue-test-utils]: option.slots does not support PhantomJS. Please use Puppeteer'
50
46
const fn = ( ) => mount ( ComponentWithSlots , { slots : { default : 'foo' } } )
51
47
expect ( fn ) . to . throw ( ) . with . property ( 'message' , message )
You can’t perform that action at this time.
0 commit comments