-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace gloss spelling suggestions with dropdown menu
- Loading branch information
1 parent
15896f8
commit 4bf11c6
Showing
16 changed files
with
222 additions
and
669 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 19 additions & 18 deletions
37
...s/DataEntry/DataEntryTable/DuplicateResolutionView/tests/DuplicateResolutionView.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import { DuplicateResolutionView } from "../DuplicateResolutionView"; | ||
import renderer from "react-test-renderer"; | ||
|
||
import { Word, Sense } from "../../../../../types/word"; | ||
import { mockWord } from "../../../tests/MockWord"; | ||
import { DuplicateResolutionView } from "../DuplicateResolutionView"; | ||
|
||
describe("Tests DeleteEntry", () => { | ||
describe("Tests DuplicateResolutionView", () => { | ||
it("renders without crashing", () => { | ||
const div = document.createElement("div"); | ||
ReactDOM.render( | ||
<DuplicateResolutionView | ||
existingEntry={mockWord} | ||
newSense={""} | ||
addSense={(existingWord: Word, newSense: string) => null} | ||
addSemanticDomain={( | ||
existingWord: Word, | ||
sense: Sense, | ||
index: number | ||
) => {}} | ||
/>, | ||
div | ||
); | ||
ReactDOM.unmountComponentAtNode(div); | ||
renderer.act(() => { | ||
renderer.create( | ||
<DuplicateResolutionView | ||
existingEntry={mockWord} | ||
newSense={""} | ||
addSense={(existingWord: Word, newSense: string) => null} | ||
addSemanticDomain={( | ||
existingWord: Word, | ||
sense: Sense, | ||
index: number | ||
) => {}} | ||
duplicateInput={React.createRef<HTMLDivElement>()} | ||
/> | ||
); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.