Skip to content

Commit

Permalink
Remove superfluous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrady committed Nov 2, 2023
1 parent c7543df commit 9e71bc8
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions src/goals/MergeDuplicates/Redux/tests/MergeDupsActions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
defaultTree,
MergeData,
MergeTree,
MergeTreeReference,
newMergeTreeSense,
newMergeTreeWord,
} from "goals/MergeDuplicates/MergeDupsTreeTypes";
Expand All @@ -13,8 +12,6 @@ import {
deferMerge,
dispatchMergeStepData,
mergeAll,
moveSense,
orderSense,
setData,
} from "goals/MergeDuplicates/Redux/MergeDupsActions";
import { goalDataMock } from "goals/MergeDuplicates/Redux/tests/MergeDupsDataMock";
Expand Down Expand Up @@ -250,53 +247,6 @@ describe("MergeDupActions", () => {
});
});

describe("moveSense", () => {
const wordId = "mockWordId";
const mergeSenseId = "mockSenseId";

it("creates a moveSenseAction when going from word to word", () => {
const mockRef: MergeTreeReference = { wordId, mergeSenseId };
const resultAction = moveSense({
ref: mockRef,
destWordId: wordId,
destOrder: -1,
});
expect(resultAction.type).toEqual("mergeDupStepReducer/moveSenseAction");
});

it("creates a moveDuplicateAction when going from sidebar to word", () => {
const mockRef: MergeTreeReference = { wordId, mergeSenseId, order: 0 };
const resultAction = moveSense({
ref: mockRef,
destWordId: wordId,
destOrder: -1,
});
expect(resultAction.type).toEqual(
"mergeDupStepReducer/moveDuplicateAction"
);
});
});

describe("orderSense", () => {
const wordId = "mockWordId";
const mergeSenseId = "mockSenseId";
const mockOrder = 0;

it("creates an orderSenseAction when moving within a word", () => {
const mockRef: MergeTreeReference = { wordId, mergeSenseId };
const resultAction = orderSense({ ref: mockRef, order: mockOrder });
expect(resultAction.type).toEqual("mergeDupStepReducer/orderSenseAction");
});

it("creates an orderDuplicateAction when moving within the sidebar", () => {
const mockRef: MergeTreeReference = { wordId, mergeSenseId, order: 0 };
const resultAction = orderSense({ ref: mockRef, order: mockOrder });
expect(resultAction.type).toEqual(
"mergeDupStepReducer/orderDuplicateAction"
);
});
});

describe("deferMerge", () => {
it("add merge to graylist", () => {
const WA = newMergeTreeWord(vernA, { ID1: [S1], ID2: [S2] });
Expand Down

0 comments on commit 9e71bc8

Please sign in to comment.