Skip to content

Commit c07852b

Browse files
committed
Add two checks into unit tests
1 parent 38fac58 commit c07852b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/survey-creator-core/tests/property-grid/property-grid-v1.tests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ test("SurveyPropertyItemValue", () => {
331331

332332
choicesQuestion.addRow();
333333
expect(question.choices).toHaveLength(3);
334+
expect(question.choices[2].getType()).toEqual("checkboxitem");
334335
expect(rows[2].cells[0].value).toEqual(4);
335336
rows[2].cells[1].value = "item4";
336337
expect(rows[2].cells[1].value).toEqual("item4");
@@ -360,6 +361,7 @@ test("SurveyPropertyItemValue different view type", () => {
360361
valueQuestion.value = "1|item1\n\n2|item2\n3\ni4";
361362
valueEditor.apply();
362363
expect(question.choices).toHaveLength(4);
364+
expect(question.choices[0].getType()).toBe("checkboxitem");
363365

364366
var rows = choicesQuestion.visibleRows;
365367
expect(rows).toHaveLength(4);

0 commit comments

Comments
 (0)