Skip to content

Commit dad60a9

Browse files
committed
Avoid deprecation warnings printed in test output.
1 parent ecf24c1 commit dad60a9

File tree

3 files changed

+15
-25
lines changed

3 files changed

+15
-25
lines changed

test/ArrayField_test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,9 @@ describe("ArrayField", () => {
394394
const {node} = createFormComponent({
395395
schema,
396396
uiSchema: {
397-
"ui:widget": {
398-
component: "checkboxes",
399-
options: {
400-
inline: true
401-
}
397+
"ui:widget": "checkboxes",
398+
"ui:options": {
399+
inline: true
402400
}
403401
}
404402
});

test/BooleanField_test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ describe("BooleanField", () => {
101101
schema: {type: "boolean"},
102102
formData: true,
103103
uiSchema: {
104-
"ui:widget": {
105-
component: "radio",
106-
options: {
107-
inline: true
108-
}
104+
"ui:widget": "radio",
105+
"ui:options": {
106+
inline: true
109107
}
110108
}
111109
});

test/uiSchema_test.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,9 @@ describe("uiSchema", () => {
244244
describe("direct reference", () => {
245245
const uiSchema = {
246246
"field": {
247-
"ui:widget": {
248-
component: CustomWidget,
249-
options: {
250-
className: "custom"
251-
}
247+
"ui:widget": CustomWidget,
248+
"ui:options": {
249+
className: "custom"
252250
}
253251
}
254252
};
@@ -263,11 +261,9 @@ describe("uiSchema", () => {
263261
describe("string reference", () => {
264262
const uiSchema = {
265263
"field": {
266-
"ui:widget": {
267-
component: "custom",
268-
options: {
269-
className: "custom"
270-
}
264+
"ui:widget": "custom",
265+
"ui:options": {
266+
className: "custom"
271267
}
272268
}
273269
};
@@ -307,11 +303,9 @@ describe("uiSchema", () => {
307303

308304
const uiSchema = {
309305
"field": {
310-
"ui:widget": {
311-
component: CustomWidget,
312-
options: {
313-
className: "custom"
314-
}
306+
"ui:widget": CustomWidget,
307+
"ui:options": {
308+
className: "custom"
315309
}
316310
}
317311
};

0 commit comments

Comments
 (0)