@@ -1781,7 +1781,7 @@ function componentNeedsCompiling(component) {
1781
1781
function isRefSelector ( refOptionsObject ) {
1782
1782
if (
1783
1783
! isPlainObject ( refOptionsObject ) ||
1784
- Object . keys ( refOptionsObject || { } ) . length !== 1
1784
+ keys$1 ( refOptionsObject || { } ) . length !== 1
1785
1785
) {
1786
1786
return false
1787
1787
}
@@ -1848,10 +1848,10 @@ function makeMap(str, expectsLowerCase) {
1848
1848
map [ list [ i ] ] = true ;
1849
1849
}
1850
1850
return expectsLowerCase
1851
- ? function ( val ) {
1851
+ ? function ( val ) {
1852
1852
return map [ val . toLowerCase ( ) ]
1853
1853
}
1854
- : function ( val ) {
1854
+ : function ( val ) {
1855
1855
return map [ val ]
1856
1856
}
1857
1857
}
@@ -1923,7 +1923,7 @@ function vmCtorMatches(vm, component) {
1923
1923
}
1924
1924
1925
1925
if ( component . functional ) {
1926
- return Object . keys ( vm . _Ctor || { } ) . some ( function ( c ) {
1926
+ return keys$1 ( vm . _Ctor || { } ) . some ( function ( c ) {
1927
1927
return component === vm . _Ctor [ c ] . extendOptions
1928
1928
} )
1929
1929
}
@@ -2105,7 +2105,7 @@ function getOption(option, config) {
2105
2105
if ( option === false ) {
2106
2106
return false
2107
2107
}
2108
- if ( option || ( config && Object . keys ( config ) . length > 0 ) ) {
2108
+ if ( option || ( config && keys$1 ( config ) . length > 0 ) ) {
2109
2109
if ( option instanceof Function ) {
2110
2110
return option
2111
2111
}
@@ -2129,7 +2129,7 @@ function mergeOptions(
2129
2129
) {
2130
2130
var mocks = ( getOption ( options . mocks , config . mocks ) ) ;
2131
2131
var methods = ( getOption ( options . methods , config . methods ) ) ;
2132
- if ( methods && Object . keys ( methods ) . length ) {
2132
+ if ( methods && keys$1 ( methods ) . length ) {
2133
2133
warnDeprecated (
2134
2134
'overwriting methods via the `methods` property' ,
2135
2135
'There is no clear migration path for the `methods` property - Vue does not support arbitrarily replacement of methods, nor should VTU. To stub a complex method extract it from the component and test it in isolation. Otherwise, the suggestion is to rethink those tests'
@@ -8127,14 +8127,14 @@ function isElementVisible(element, previousElement) {
8127
8127
}
8128
8128
8129
8129
function recursivelySetData ( vm , target , data ) {
8130
- Object . keys ( data ) . forEach ( function ( key ) {
8130
+ keys$1 ( data ) . forEach ( function ( key ) {
8131
8131
var val = data [ key ] ;
8132
8132
var targetVal = target [ key ] ;
8133
8133
8134
8134
if (
8135
8135
isPlainObject ( val ) &&
8136
8136
isPlainObject ( targetVal ) &&
8137
- Object . keys ( val ) . length > 0
8137
+ keys$1 ( val ) . length > 0
8138
8138
) {
8139
8139
recursivelySetData ( vm , targetVal , val ) ;
8140
8140
} else {
@@ -9382,10 +9382,10 @@ var w3cKeys = {
9382
9382
esc : 'Esc' ,
9383
9383
escape : 'Escape' ,
9384
9384
space : ' ' ,
9385
- up : 'Up ' ,
9386
- left : 'Left ' ,
9387
- right : 'Right ' ,
9388
- down : 'Down ' ,
9385
+ up : 'ArrowUp ' ,
9386
+ left : 'ArrowLeft ' ,
9387
+ right : 'ArrowRight ' ,
9388
+ down : 'ArrowDown ' ,
9389
9389
end : 'End' ,
9390
9390
home : 'Home' ,
9391
9391
backspace : 'Backspace' ,
@@ -9470,7 +9470,7 @@ function createDOMEvent(type, options) {
9470
9470
: createOldEvent ( eventParams ) ;
9471
9471
9472
9472
var eventPrototype = Object . getPrototypeOf ( event ) ;
9473
- Object . keys ( options || { } ) . forEach ( function ( key ) {
9473
+ keys$1 ( options || { } ) . forEach ( function ( key ) {
9474
9474
var propertyDescriptor = Object . getOwnPropertyDescriptor (
9475
9475
eventPrototype ,
9476
9476
key
@@ -9576,17 +9576,14 @@ Wrapper.prototype.classes = function classes (className) {
9576
9576
var classes = classAttribute ? classAttribute . split ( ' ' ) : [ ] ;
9577
9577
// Handle converting cssmodules identifiers back to the original class name
9578
9578
if ( this . vm && this . vm . $style ) {
9579
- var cssModuleIdentifiers = Object . keys ( this . vm . $style ) . reduce (
9580
- function ( acc , key ) {
9581
- // $FlowIgnore
9582
- var moduleIdent = this$1 . vm . $style [ key ] ;
9583
- if ( moduleIdent ) {
9584
- acc [ moduleIdent . split ( ' ' ) [ 0 ] ] = key ;
9585
- }
9586
- return acc
9587
- } ,
9588
- { }
9589
- ) ;
9579
+ var cssModuleIdentifiers = keys$1 ( this . vm . $style ) . reduce ( function ( acc , key ) {
9580
+ // $FlowIgnore
9581
+ var moduleIdent = this$1 . vm . $style [ key ] ;
9582
+ if ( moduleIdent ) {
9583
+ acc [ moduleIdent . split ( ' ' ) [ 0 ] ] = key ;
9584
+ }
9585
+ return acc
9586
+ } , { } ) ;
9590
9587
classes = classes . map ( function ( name ) { return cssModuleIdentifiers [ name ] || name ; } ) ;
9591
9588
}
9592
9589
@@ -9940,7 +9937,7 @@ Wrapper.prototype.overview = function overview () {
9940
9937
var computed = this . vm . _computedWatchers
9941
9938
? formatJSON . apply (
9942
9939
// $FlowIgnore
9943
- void 0 , Object . keys ( this . vm . _computedWatchers ) . map ( function ( computedKey ) {
9940
+ void 0 , keys$1 ( this . vm . _computedWatchers ) . map ( function ( computedKey ) {
9944
9941
var obj ;
9945
9942
9946
9943
return ( ( obj = { } , obj [ computedKey ] = this$1 . vm [ computedKey ] , obj ) ) ;
@@ -9964,9 +9961,7 @@ Wrapper.prototype.overview = function overview () {
9964
9961
var emittedJSONReplacer = function ( key , value ) { return value instanceof Array
9965
9962
? value . map ( function ( calledWith , index ) {
9966
9963
var callParams = calledWith . map ( function ( param ) { return typeof param === 'object'
9967
- ? JSON . stringify ( param )
9968
- . replace ( / " / g, '' )
9969
- . replace ( / , / g, ', ' )
9964
+ ? JSON . stringify ( param ) . replace ( / " / g, '' ) . replace ( / , / g, ', ' )
9970
9965
: param ; }
9971
9966
) ;
9972
9967
@@ -10148,7 +10143,7 @@ Wrapper.prototype.setMethods = function setMethods (methods) {
10148
10143
}
10149
10144
this . __warnIfDestroyed ( ) ;
10150
10145
10151
- Object . keys ( methods ) . forEach ( function ( key ) {
10146
+ keys$1 ( methods ) . forEach ( function ( key ) {
10152
10147
// $FlowIgnore : Problem with possibly null this.vm
10153
10148
this$1 . vm [ key ] = methods [ key ] ;
10154
10149
// $FlowIgnore : Problem with possibly null this.vm
@@ -10187,7 +10182,7 @@ Wrapper.prototype.setProps = function setProps (data) {
10187
10182
10188
10183
this . __warnIfDestroyed ( ) ;
10189
10184
10190
- Object . keys ( data ) . forEach ( function ( key ) {
10185
+ keys$1 ( data ) . forEach ( function ( key ) {
10191
10186
// Don't let people set entire objects, because reactivity won't work
10192
10187
if (
10193
10188
isPlainObject ( data [ key ] ) &&
@@ -12921,7 +12916,7 @@ function _createLocalVue(
12921
12916
var instance = _Vue . extend ( ) ;
12922
12917
12923
12918
// clone global APIs
12924
- Object . keys ( _Vue ) . forEach ( function ( key ) {
12919
+ keys$1 ( _Vue ) . forEach ( function ( key ) {
12925
12920
if ( ! instance . hasOwnProperty ( key ) ) {
12926
12921
var original = _Vue [ key ] ;
12927
12922
// cloneDeep can fail when cloning Vue instances
@@ -12998,7 +12993,7 @@ function compileTemplate(component) {
12998
12993
}
12999
12994
13000
12995
if ( component . components ) {
13001
- Object . keys ( component . components ) . forEach ( function ( c ) {
12996
+ keys$1 ( component . components ) . forEach ( function ( c ) {
13002
12997
var cmp = component . components [ c ] ;
13003
12998
if ( ! cmp . render ) {
13004
12999
compileTemplate ( cmp ) ;
@@ -13016,7 +13011,7 @@ function compileTemplate(component) {
13016
13011
}
13017
13012
13018
13013
function compileTemplateForSlots ( slots ) {
13019
- Object . keys ( slots ) . forEach ( function ( key ) {
13014
+ keys$1 ( slots ) . forEach ( function ( key ) {
13020
13015
var slot = Array . isArray ( slots [ key ] ) ? slots [ key ] : [ slots [ key ] ] ;
13021
13016
slot . forEach ( function ( slotValue ) {
13022
13017
if ( componentNeedsCompiling ( slotValue ) ) {
@@ -13043,7 +13038,7 @@ function requiresTemplateCompiler(slot) {
13043
13038
}
13044
13039
13045
13040
function validateSlots ( slots ) {
13046
- Object . keys ( slots ) . forEach ( function ( key ) {
13041
+ keys$1 ( slots ) . forEach ( function ( key ) {
13047
13042
var slot = Array . isArray ( slots [ key ] ) ? slots [ key ] : [ slots [ key ] ] ;
13048
13043
13049
13044
slot . forEach ( function ( slotValue ) {
@@ -13247,7 +13242,7 @@ function addMocks(
13247
13242
if ( mockedProperties === false ) {
13248
13243
return
13249
13244
}
13250
- Object . keys ( mockedProperties ) . forEach ( function ( key ) {
13245
+ keys$1 ( mockedProperties ) . forEach ( function ( key ) {
13251
13246
try {
13252
13247
// $FlowIgnore
13253
13248
_Vue . prototype [ key ] = mockedProperties [ key ] ;
@@ -13282,7 +13277,7 @@ function logEvents(
13282
13277
13283
13278
function addEventLogger ( _Vue ) {
13284
13279
_Vue . mixin ( {
13285
- beforeCreate : function ( ) {
13280
+ beforeCreate : function ( ) {
13286
13281
this . __emitted = Object . create ( null ) ;
13287
13282
this . __emittedByOrder = [ ] ;
13288
13283
logEvents ( this , this . __emitted , this . __emittedByOrder ) ;
@@ -13330,9 +13325,7 @@ function isDestructuringSlotScope(slotScope) {
13330
13325
return / ^ { .* } $ / . test ( slotScope )
13331
13326
}
13332
13327
13333
- function getVueTemplateCompilerHelpers (
13334
- _Vue
13335
- ) {
13328
+ function getVueTemplateCompilerHelpers ( _Vue ) {
13336
13329
// $FlowIgnore
13337
13330
var vue = new _Vue ( ) ;
13338
13331
var helpers = { } ;
@@ -13431,7 +13424,7 @@ function createScopedSlots(
13431
13424
13432
13425
var slotScope = scopedSlotMatches . match && scopedSlotMatches . match [ 1 ] ;
13433
13426
13434
- scopedSlots [ scopedSlotName ] = function ( props ) {
13427
+ scopedSlots [ scopedSlotName ] = function ( props ) {
13435
13428
var obj ;
13436
13429
13437
13430
var res ;
@@ -13629,7 +13622,7 @@ function createStubsFromStubsObject(
13629
13622
) {
13630
13623
if ( originalComponents === void 0 ) originalComponents = { } ;
13631
13624
13632
- return Object . keys ( stubs || { } ) . reduce ( function ( acc , stubName ) {
13625
+ return keys$1 ( stubs || { } ) . reduce ( function ( acc , stubName ) {
13633
13626
var stub = stubs [ stubName ] ;
13634
13627
13635
13628
validateStub ( stub ) ;
@@ -13847,8 +13840,8 @@ function createInstance(
13847
13840
13848
13841
// watchers provided in mounting options should override preexisting ones
13849
13842
if ( componentOptions . watch && instanceOptions . watch ) {
13850
- var componentWatchers = Object . keys ( componentOptions . watch ) ;
13851
- var instanceWatchers = Object . keys ( instanceOptions . watch ) ;
13843
+ var componentWatchers = keys$1 ( componentOptions . watch ) ;
13844
+ var instanceWatchers = keys$1 ( instanceOptions . watch ) ;
13852
13845
13853
13846
for ( var i = 0 ; i < instanceWatchers . length ; i ++ ) {
13854
13847
var k = instanceWatchers [ i ] ;
@@ -13868,22 +13861,22 @@ function createInstance(
13868
13861
var parentComponentOptions = options . parentComponent || { } ;
13869
13862
13870
13863
var originalParentComponentProvide = parentComponentOptions . provide ;
13871
- parentComponentOptions . provide = function ( ) {
13864
+ parentComponentOptions . provide = function ( ) {
13872
13865
return Object . assign ( { } , getValuesFromCallableOption . call ( this , originalParentComponentProvide ) ,
13873
13866
// $FlowIgnore
13874
13867
getValuesFromCallableOption . call ( this , options . provide ) )
13875
13868
} ;
13876
13869
13877
13870
var originalParentComponentData = parentComponentOptions . data ;
13878
- parentComponentOptions . data = function ( ) {
13871
+ parentComponentOptions . data = function ( ) {
13879
13872
return Object . assign ( { } , getValuesFromCallableOption . call ( this , originalParentComponentData ) ,
13880
13873
{ vueTestUtils_childProps : Object . assign ( { } , options . propsData ) } )
13881
13874
} ;
13882
13875
13883
13876
parentComponentOptions . $_doNotStubChildren = true ;
13884
13877
parentComponentOptions . $_isWrapperParent = true ;
13885
13878
parentComponentOptions . _isFunctionalContainer = componentOptions . functional ;
13886
- parentComponentOptions . render = function ( h ) {
13879
+ parentComponentOptions . render = function ( h ) {
13887
13880
return h (
13888
13881
Constructor ,
13889
13882
createContext ( options , scopedSlots , this . vueTestUtils_childProps ) ,
0 commit comments