Skip to content

Commit

Permalink
Revert name change to ScoringData - we'll do that in one sweep later
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Nov 19, 2024
1 parent 024bbb1 commit bc50984
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/perseus/src/widgets/expression/score-expression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe("scoreExpression", () => {
const mockValidator = jest
.spyOn(ExpressionValidator, "default")
.mockReturnValue(null);
const scoringData: PerseusExpressionRubric = expressionItem3Options;
const rubric: PerseusExpressionRubric = expressionItem3Options;

// Act
const score = scoreExpression("z+1", scoringData, mockStrings, "en");
const score = scoreExpression("z+1", rubric, mockStrings, "en");

// Assert
expect(mockValidator).toHaveBeenCalledWith(
"z+1",
scoringData,
rubric,
mockStrings,
"en",
);
Expand All @@ -32,15 +32,15 @@ describe("scoreExpression", () => {
const mockValidator = jest
.spyOn(ExpressionValidator, "default")
.mockReturnValue({type: "invalid", message: null});
const scoringData: PerseusExpressionRubric = expressionItem3Options;
const rubric: PerseusExpressionRubric = expressionItem3Options;

// Act
const score = scoreExpression("z+1", scoringData, mockStrings, "en");
const score = scoreExpression("z+1", rubric, mockStrings, "en");

// Assert
expect(mockValidator).toHaveBeenCalledWith(
"z+1",
scoringData,
rubric,
mockStrings,
"en",
);
Expand Down

0 comments on commit bc50984

Please sign in to comment.