Skip to content

Commit

Permalink
Fix knockout unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Sep 19, 2024
1 parent 7267b92 commit ffcce44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/survey-creator-knockout/tests/creator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ test("isGhost value for attached element", (): any => {
);
expect(creator.survey.pages).toHaveLength(1);
expect(designerPlugin.model.newPage).toBeTruthy();
designerPlugin.model.newPage.unRegisterFunctionOnPropertiesValueChanged(["title"]);
creator.survey.pages[0].unRegisterFunctionOnPropertiesValueChanged(["title"]);
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(1);
Expand Down

0 comments on commit ffcce44

Please sign in to comment.