Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bduhbya committed Jun 30, 2024
1 parent 660643d commit 325ed13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/components/CombatTracker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import React from "react";
import strings from "../../strings";
import {
mockBadmockSingleCharacterFile_warrior,
mockSingleCharacterMageFile,
mockSingleCharacterWarrior,
mockSingleCharacterWarriorFile,
} from "../lib/definitionMocks";
import { promptForFile } from "../lib/fileInput";
Expand Down Expand Up @@ -57,7 +55,7 @@ describe("CombatTracker", () => {
});

// TODO: add tests for sorting to check active character is preserved
it("toggles sort order correctly", () => {
it("toggles sort order label correctly", () => {
const { getByText } = render(<CombatTracker />);

fireEvent.click(getByText(strings.descendingLabel));
Expand Down Expand Up @@ -154,7 +152,7 @@ describe("CombatTracker", () => {
mockSingleCharacterWarriorFile,
mockSingleCharacterWarriorFile,
];
// The expected active character index after each activation of the move down button
// The expected active character index after each activation of the move up button
const expectedActiveCharacterIndex = [0, 1, 0];

for (let i = 0; i < mockCharacterFiles.length; i++) {
Expand Down

0 comments on commit 325ed13

Please sign in to comment.