Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
barais committed Oct 23, 2024
1 parent 7f52183 commit d2b7c79
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ describe('QuestionpropertiesviewComponent', () => {
typeId: 2,
defaultpoint: undefined,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
}));
mockPrefService.savePref4Question = jest.fn();

Expand Down Expand Up @@ -145,6 +148,9 @@ describe('QuestionpropertiesviewComponent', () => {
zoneId: 100,
defaultpoint: undefined,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
};

otherQ = {
Expand All @@ -160,6 +166,9 @@ describe('QuestionpropertiesviewComponent', () => {
zoneId: 1002,
defaultpoint: undefined,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
};

jest.spyOn(component.editForm, 'patchValue');
Expand All @@ -184,6 +193,9 @@ describe('QuestionpropertiesviewComponent', () => {
gradeType: selectedQ.gradeType,
typeId: selectedQ.typeId,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
},
{ emitEvent: false },
);
Expand Down Expand Up @@ -252,6 +264,9 @@ describe('QuestionpropertiesviewComponent', () => {
zoneId: 1001,
typeId: 2,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
},
{
id: 12,
Expand All @@ -265,6 +280,9 @@ describe('QuestionpropertiesviewComponent', () => {
zoneId: 1002,
typeId: 2,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
},
];

Expand All @@ -289,6 +307,9 @@ describe('QuestionpropertiesviewComponent', () => {
gradeType: qs[0].gradeType,
typeId: qs[0].typeId,
randomHorizontalCorrection: false,
canBeNegative: false,
canExceedTheMax: false,
mustBeIgnoreInGlobalScale: false,
},
{ emitEvent: false },
);
Expand Down

0 comments on commit d2b7c79

Please sign in to comment.