This repository was archived by the owner on Dec 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Buttons Integration for clue #286
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f466ac7
Add button refs to clue
xnkevinnguyen d412f0b
Add a+b buttons
xnkevinnguyen 6c5b28b
Add tests for clue
xnkevinnguyen d87d79e
Filter messages for clue
xnkevinnguyen b0d8daf
first commit
vandyliu 622c790
Merge branch 'users/t-vali/clue-buttons-python' into users/t-xunguy/b…
vandyliu 48bbcb2
connect buttons to python side and add python-side button logic
vandyliu 750a42d
formatted
vandyliu 9b507d7
added python tests for button
vandyliu 61fff63
Update with latest dev
xnkevinnguyen 7a830b3
Merge branch 'users/t-xunguy/buttons' of https://github.com/microsoft…
xnkevinnguyen 227a28a
Update tests
xnkevinnguyen c34e81f
Formatted
vandyliu 5ac270b
Merge branch 'users/t-xunguy/buttons' of https://github.com/microsoft…
vandyliu b1079a7
fixed bug in python clue button tests
vandyliu 560f78f
Merge branch 'dev' into users/t-xunguy/buttons
xnkevinnguyen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
|
||
IMG_DIR_NAME = "img" | ||
SCREEN_HEIGHT_WIDTH = 240 | ||
|
||
EXPECTED_INPUT_BUTTONS = ["button_a", "button_b"] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import * as React from "react"; | ||
import * as ReactDOM from "react-dom"; | ||
import { IntlProvider } from "react-intl"; | ||
import * as testRenderer from "react-test-renderer"; | ||
import { Clue } from "./Clue"; | ||
|
||
describe("Clue component", () => { | ||
it("should render correctly", () => { | ||
const component = testRenderer | ||
.create( | ||
<IntlProvider locale="en"> | ||
<Clue /> | ||
</IntlProvider> | ||
) | ||
.toJSON(); | ||
expect(component).toMatchSnapshot(); | ||
}); | ||
|
||
it("should render without crashing", () => { | ||
const div = document.createElement("div"); | ||
ReactDOM.render( | ||
<IntlProvider locale="en"> | ||
<Clue /> | ||
</IntlProvider>, | ||
div | ||
); | ||
ReactDOM.unmountComponentAtNode(div); | ||
}); | ||
}); |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.