@@ -19,9 +19,9 @@ describeWithMountingMethods('options.provide', (mountingMethod) => {
19
19
config . provide = configProvideSave
20
20
} )
21
21
22
- itDoNotRunIf ( ! injectSupported ( ) ,
22
+ itDoNotRunIf ( ! injectSupported ,
23
23
'provides objects which is injected by mounted component' , ( ) => {
24
- if ( ! injectSupported ( ) ) return
24
+ if ( ! injectSupported ) return
25
25
26
26
const wrapper = mountingMethod ( ComponentWithInject , {
27
27
provide : { fromMount : 'objectValue' }
@@ -32,7 +32,7 @@ describeWithMountingMethods('options.provide', (mountingMethod) => {
32
32
expect ( HTML ) . to . contain ( 'objectValue' )
33
33
} )
34
34
35
- itDoNotRunIf ( ! injectSupported ( ) ,
35
+ itDoNotRunIf ( ! injectSupported ,
36
36
'provides function which is injected by mounted component' , ( ) => {
37
37
const wrapper = mountingMethod ( ComponentWithInject , {
38
38
provide ( ) {
@@ -47,9 +47,9 @@ describeWithMountingMethods('options.provide', (mountingMethod) => {
47
47
expect ( HTML ) . to . contain ( 'functionValue' )
48
48
} )
49
49
50
- itDoNotRunIf ( ! injectSupported ( ) || mountingMethod . name === 'renderToString' ,
50
+ itDoNotRunIf ( ! injectSupported || mountingMethod . name === 'renderToString' ,
51
51
'supports beforeCreate in component' , ( ) => {
52
- if ( ! injectSupported ( ) ) return
52
+ if ( ! injectSupported ) return
53
53
54
54
const wrapper = mountingMethod ( ComponentWithInject , {
55
55
provide : { fromMount : '_' }
@@ -60,7 +60,7 @@ describeWithMountingMethods('options.provide', (mountingMethod) => {
60
60
61
61
itSkipIf ( mountingMethod . name === 'renderToString' ,
62
62
'injects the provide from the config' , ( ) => {
63
- if ( ! injectSupported ( ) ) {
63
+ if ( ! injectSupported ) {
64
64
return
65
65
}
66
66
config . provide [ 'fromMount' ] = 'globalConfig'
@@ -73,7 +73,7 @@ describeWithMountingMethods('options.provide', (mountingMethod) => {
73
73
expect ( HTML ) . to . contain ( 'globalConfig' )
74
74
} )
75
75
76
- itDoNotRunIf ( ! injectSupported ( ) , 'prioritize mounting options over config' , ( ) => {
76
+ itDoNotRunIf ( ! injectSupported , 'prioritize mounting options over config' , ( ) => {
77
77
config . provide [ 'fromMount' ] = 'globalConfig'
78
78
79
79
const wrapper = mountingMethod ( ComponentWithInject , {
0 commit comments