Skip to content

Commit

Permalink
Clarify test fixture names
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Aug 9, 2024
1 parent e367f09 commit 3e48515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
segmentWithLockedEllipses,
segmentWithLockedVectors,
segmentWithLockedPolygons,
staticGraph,
staticGraphWithAnotherQuestion,
staticGraphQuestion,
staticGraphQuestionWithAnotherWidget,
} from "../__testdata__/interactive-graph.testdata";

import type {APIOptions} from "@khanacademy/perseus";
Expand Down Expand Up @@ -163,15 +163,15 @@ export const AngleWithMafs = (args: StoryArgs): React.ReactElement => (
);

export const StaticGraph = (args: StoryArgs): React.ReactElement => (
<RendererWithDebugUI apiOptions={enableMafs} question={staticGraph} />
<RendererWithDebugUI apiOptions={enableMafs} question={staticGraphQuestion} />
);

export const StaticGraphWithAnotherWidget = (
args: StoryArgs,
): React.ReactElement => (
<RendererWithDebugUI
apiOptions={enableMafs}
question={staticGraphWithAnotherQuestion()}
question={staticGraphQuestionWithAnotherWidget()}
/>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ export const quadraticQuestion: PerseusRenderer =
export const quadraticQuestionWithDefaultCorrect: PerseusRenderer =
interactiveGraphQuestionBuilder().withQuadratic().build();

export const staticGraph: PerseusRenderer = interactiveGraphQuestionBuilder()
export const staticGraphQuestion: PerseusRenderer = interactiveGraphQuestionBuilder()
.addLockedPointAt(-7, -7)
.addLockedLine([-7, -5], [2, -3])
.addLockedVector([0, 0], [8, 2], "purple")
Expand All @@ -826,7 +826,7 @@ export const staticGraph: PerseusRenderer = interactiveGraphQuestionBuilder()
.withStaticMode(true)
.build();

export const staticGraphWithAnotherQuestion: () => PerseusRenderer = () => {
export const staticGraphQuestionWithAnotherWidget: () => PerseusRenderer = () => {
const result = interactiveGraphQuestionBuilder()
.addLockedPointAt(-7, -7)
.addLockedLine([-7, -5], [2, -3])
Expand Down

0 comments on commit 3e48515

Please sign in to comment.