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 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to enzyme v3 * Remove unnecessary new lines * Update Mutli and Single Selectable List Row snapshots
- Loading branch information
Showing
50 changed files
with
490 additions
and
242 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
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.