-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple cases for JSX components to increase the coverage
- Loading branch information
1 parent
436a612
commit fa6e9ad
Showing
9 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import ActionButton from "./ActionButton"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<ActionButton>Text</ActionButton>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import Avatar from "./Avatar"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<Avatar />); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import CardImage from "./CardImage"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<CardImage/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import ChipImage from "./ChipImage"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<ChipImage/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import GithubProjectLink from "./GithubProjectLink"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<GithubProjectLink/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import MessageBar from "./MessageBar"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<MessageBar | ||
playerId="player" | ||
eventLogs={[]} | ||
messages={[]} | ||
names={new Map<string, string>()} | ||
/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import Modal from "./Modal"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<Modal/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import PlayerAvatar from "./PlayerAvatar"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<PlayerAvatar playerId="player"/>); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import ScoreBoardAndToggle from "./ScoreBoardAndToggle"; | ||
|
||
test('rendering does not crash', () => { | ||
render(<ScoreBoardAndToggle | ||
scoreBoard={new Map()} | ||
totalDebt={new Map()} | ||
bankrolls={new Map()} | ||
names={new Map()}/>); | ||
}); |