This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Update to enzyme v3 #1012
Merged
Merged
Update to enzyme v3 #1012
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ba88ed4
Update to enzyme v3
9ca91e9
Merge branch 'master' into enzyme-upgrade
bjankord de92c42
Remove unnecessary new lines
130a36b
Merge branch 'enzyme-upgrade' of https://github.com/cerner/terra-core…
92f27a5
Merge branch 'master' into enzyme-upgrade
bjankord 868fa84
Update Mutli and Single Selectable List Row snapshots
e9158f0
Merge branch 'master' into enzyme-upgrade
mjhenkes 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 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
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
76 changes: 0 additions & 76 deletions
76
packages/terra-base/tests/jest/__snapshots__/Base.test.jsx.snap
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,83 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`should render the component with customMessages 1`] = ` | ||
<I18nProvider | ||
locale="en-US" | ||
messages={ | ||
Object { | ||
"App.test": "App test", | ||
} | ||
} | ||
> | ||
customMessages | ||
</I18nProvider> | ||
`; | ||
|
||
exports[`should render the component with merged attributes 1`] = ` | ||
<I18nProvider | ||
className="TestClass" | ||
data-mock="data" | ||
id="TestId" | ||
locale="en-US" | ||
messages={Object {}} | ||
> | ||
String | ||
</I18nProvider> | ||
`; | ||
|
||
exports[`should support rendering a string as children 1`] = ` | ||
<I18nProvider | ||
locale="en-US" | ||
messages={Object {}} | ||
> | ||
String | ||
</I18nProvider> | ||
`; | ||
|
||
exports[`should support rendering a string as the translationsLoadingPlaceholder prop 1`] = ` | ||
<div> | ||
String | ||
</div> | ||
`; | ||
|
||
exports[`should support rendering a string without translation 1`] = ` | ||
<div> | ||
String | ||
</div> | ||
`; | ||
|
||
exports[`should support rendering an array of elements as a children 1`] = ` | ||
<I18nProvider | ||
locale="en-US" | ||
messages={Object {}} | ||
> | ||
<h1> | ||
Heading | ||
</h1> | ||
<p> | ||
Element 1 | ||
</p> | ||
<p> | ||
Element 2 | ||
</p> | ||
</I18nProvider> | ||
`; | ||
|
||
exports[`should support rendering an element as children 1`] = ` | ||
<I18nProvider | ||
locale="en-US" | ||
messages={Object {}} | ||
> | ||
<p> | ||
Element | ||
</p> | ||
</I18nProvider> | ||
`; | ||
|
||
exports[`should support rendering an element as the translationsLoadingPlaceholder prop 1`] = ` | ||
<div> | ||
<p> | ||
Element | ||
</p> | ||
</div> | ||
`; |
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,20 @@ | ||
import React from 'react'; | ||
import Base from '../../lib/Base'; | ||
|
||
const ArrayBase = () => ( | ||
<div> | ||
<Base> | ||
<div id="one">One</div> | ||
<div id="two">Two</div> | ||
<div id="three">Three</div> | ||
</Base> | ||
|
||
<Base locale="en-US"> | ||
<div id="four">Four</div> | ||
<div id="five">Five</div> | ||
<div id="six">Six</div> | ||
</Base> | ||
</div> | ||
); | ||
|
||
export default ArrayBase; |
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
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
13 changes: 13 additions & 0 deletions
13
packages/terra-base/tests/nightwatch/NoTranslationsLoadedStringBase.jsx
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,13 @@ | ||
import React from 'react'; | ||
import Base from '../../lib/Base'; | ||
|
||
const BaseNoTranslationsLoaded = () => { | ||
const noTranslations = ( | ||
<Base locale="gabcdef" translationsLoadingPlaceholder={'No Translations String'}> | ||
<div>Translations</div> | ||
</Base> | ||
); | ||
return noTranslations; | ||
}; | ||
|
||
export default BaseNoTranslationsLoaded; |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: added an extra line here not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in this commit: de92c42