From 57cddea1fde6fb019cc08d48b65eecced09c5521 Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Sat, 30 Dec 2023 13:09:53 +0300 Subject: [PATCH] Fixed u-test --- packages/survey-creator-knockout/tests/creator.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/survey-creator-knockout/tests/creator.spec.ts b/packages/survey-creator-knockout/tests/creator.spec.ts index b6f784f9e1..9096422a4c 100644 --- a/packages/survey-creator-knockout/tests/creator.spec.ts +++ b/packages/survey-creator-knockout/tests/creator.spec.ts @@ -22,7 +22,7 @@ test("getObjectDisplayName", () => { // expect(true).toEqual(true); // }); -test("isChost value for attached element", (): any => { +test("isGhost value for attached element", (): any => { const creator = new SurveyCreator(); creator.JSON = { elements: [ @@ -39,9 +39,9 @@ test("isChost value for attached element", (): any => { expect(designerPlugin.model.newPage).toBeTruthy(); let pageAdornerModel = new CreatorSurveyPageComponent(creator as any, designerPlugin.model.newPage as any); expect(pageAdornerModel.isGhost).toBeTruthy(); - expect(designerPlugin.model.newPage["onPropChangeFunctions"].filter(f => f.name === "title").length).toBe(3); + expect(designerPlugin.model.newPage["onPropChangeFunctions"].filter(f => f.name === "title").length).toBe(1); pageAdornerModel = new CreatorSurveyPageComponent(creator as any, creator.survey.pages[0] as any); expect(pageAdornerModel.isGhost).toBeFalsy(); expect(creator.survey.pages[0]["onPropChangeFunctions"].filter(f => f.name === "title").length).toBe(0); -}); \ No newline at end of file +});