Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Jul 5, 2024
1 parent 2bd8bf3 commit 3cb3e74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/DataEntry/DataEntryTable/tests/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
newSemanticDomainTreeNode,
semDomFromTreeNode,
} from "types/semanticDomain";
import { newUser } from "types/user";
import { multiSenseWord, newSense, newWord, simpleWord } from "types/word";
import { Bcp47Code } from "types/writingSystem";
import { firstGlossText } from "utilities/wordUtilities";
Expand All @@ -47,6 +48,7 @@ jest.mock("backend", () => ({
updateWord: (...args: any[]) => mockUpdateWord(...args),
}));
jest.mock("backend/localStorage", () => ({
getCurrentUser: () => mockUser,
getUserId: () => mockUserId,
}));
jest.mock("components/DataEntry/DataEntryTable/NewEntry/SenseDialog");
Expand All @@ -72,6 +74,7 @@ const mockMultiWord = multiSenseWord("vern", ["gloss1", "gloss2"]);
const mockSemDomId = "semDomId";
const mockTreeNode = newSemanticDomainTreeNode(mockSemDomId);
const mockSemDom = semDomFromTreeNode(mockTreeNode);
const mockUser = newUser();
const mockUserId = "mockUserId";
const mockStore = configureMockStore()(defaultState);

Expand Down

0 comments on commit 3cb3e74

Please sign in to comment.