Skip to content

Commit

Permalink
lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bduhbya committed Jun 10, 2024
1 parent e2d8199 commit 641d3a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/app/testData/bad_character_data.json
16 changes: 11 additions & 5 deletions src/app/components/CombatTracker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ jest.mock("../lib/fileInput", () => ({

jest.mock(
"./InitiativeInputDialog",
() => (props: InitiativeInputDialogProps) => {
handleCancelHook = props.onCancel;
handleConfirmHook = props.onConfirm;
addedCharacter = props.character;
return <div>Mock InitiativeInputDialog</div>;
() => {
const MockInitiativeInputDialog = (props: InitiativeInputDialogProps) => {
handleCancelHook = props.onCancel;
handleConfirmHook = props.onConfirm;
addedCharacter = props.character;
return <div>Mock InitiativeInputDialog</div>;
};

MockInitiativeInputDialog.displayName = 'MockInitiativeInputDialog';

return MockInitiativeInputDialog;
},
);

Expand Down
6 changes: 3 additions & 3 deletions src/strings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// src/strings.ts

import { warn } from "console";

export default {
const strings = {
// Common strings
cancelString: "Cancel",

Expand Down Expand Up @@ -33,3 +31,5 @@ export default {
errorIcon: "❌",
infoIcon: "ℹ️",
};

export default strings;

0 comments on commit 641d3a0

Please sign in to comment.