File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ module.exports = function (config) {
1313
1414 // list of files / patterns to load in the browser
1515 files : [
16- { pattern : './tests/unit/core .spec.js' , watched : false }
16+ { pattern : './tests/unit/**/* .spec.js' , watched : false }
1717 ] ,
1818
1919 // preprocess matching files before serving them to the browser
2020 // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
2121 preprocessors : {
22- './src/core.js' : [ 'webpack' , 'sourcemap' ] , // Same as entrypoint specified in webpack.config.js
22+ './src/core.js' : [ 'webpack' , 'sourcemap' ] , // Same as entrypoint specified in webpack.config.js
2323 './tests/unit/**/*.spec.js' : [ 'webpack' , 'sourcemap' ]
2424 } ,
2525
Original file line number Diff line number Diff line change 33 "title" : " JSONEditor" ,
44 "description" : " JSON Schema based editor" ,
55 "version" : " 2.2.1" ,
6- "main" : " dist/nonmin/ jsoneditor.js" ,
6+ "main" : " dist/jsoneditor.js" ,
77 "author" : {
88 "name" : " Jeremy Dorn" ,
99 "email" : " jeremy@jeremydorn.com" ,
Original file line number Diff line number Diff line change @@ -968,7 +968,10 @@ export class ObjectEditor extends AbstractEditor {
968968 return acc
969969 case 'properties' :
970970 case 'items' :
971- return { }
971+ return {
972+ ...acc ,
973+ [ key ] : { }
974+ }
972975 default :
973976 return {
974977 ...acc ,
You can’t perform that action at this time.
0 commit comments