Skip to content

Commit 14318c3

Browse files
author
Riccardo Di Benedetto
committed
remove min
1 parent 9ae6ecb commit 14318c3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

config/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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",

src/editors/object.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)