Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Jest snapshot update
Browse files Browse the repository at this point in the history
  • Loading branch information
Avijit Das committed May 17, 2024
1 parent 1088611 commit bc51374
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
13 changes: 0 additions & 13 deletions packages/terra-pills/src/subcomponents/_Pill.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ const propTypes = {
* to be used in addition with a popup.
*/
title: PropTypes.string,

/**
* Adds a header with close button to the popup.
*/
showPopupHeader: PropTypes.boolean,
};

const defaultProps = {
showPopupHeader: true,
};

const Pill = (props) => {
Expand All @@ -73,7 +64,6 @@ const Pill = (props) => {
onRemove,
title,
onSelect,
showPopupHeader,
...customProps
} = props;

Expand Down Expand Up @@ -217,7 +207,6 @@ const Pill = (props) => {
targetRef={getPillRef}
onRequestClose={handleOnRequestClose}
contentHeight="auto"
isHeaderDisabled={!showPopupHeader}
>
<div className={cx(['popup-content-pill-label', theme.className])}>
{labelCategory
Expand Down Expand Up @@ -306,6 +295,4 @@ const Pill = (props) => {
};

Pill.propTypes = propTypes;
Pill.defaultProps = defaultProps;

export default injectIntl(Pill);
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
exports[`correctly applies the theme context className 1`] = `
<ThemeContextProvider
intl={
Object {
"defaultFormats": Object {},
{
"defaultFormats": {},
"defaultLocale": "en",
"formatDate": [Function],
"formatHTMLMessage": [Function],
Expand All @@ -13,8 +13,8 @@ exports[`correctly applies the theme context className 1`] = `
"formatPlural": [Function],
"formatRelative": [Function],
"formatTime": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getMessageFormat": [Function],
"getNumberFormat": [Function],
Expand Down Expand Up @@ -283,7 +283,7 @@ exports[`correctly applies the theme context className 1`] = `
>
<FormattedMessage
id="Terra.popup.header.close"
values={Object {}}
values={{}}
>
[Function]
</FormattedMessage>
Expand All @@ -302,7 +302,7 @@ exports[`correctly applies the theme context className 1`] = `
>
<FormattedMessage
id="Terra.popup.header.close"
values={Object {}}
values={{}}
>
<Button
data-terra-popup-header-button={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ exports[`PopupContent Prop Tests with default props correctly applies the theme
>
<FormattedMessage
id="Terra.popup.header.close"
values={Object {}}
values={{}}
>
[Function]
</FormattedMessage>
Expand All @@ -144,7 +144,7 @@ exports[`PopupContent Prop Tests with default props correctly applies the theme
>
<FormattedMessage
id="Terra.popup.header.close"
values={Object {}}
values={{}}
>
<Button
data-terra-popup-header-button={true}
Expand Down Expand Up @@ -300,7 +300,7 @@ exports[`PopupContent Prop Tests with default props matches the snapshot 1`] = `
>
<FormattedMessage
id="Terra.popup.header.close"
values={Object {}}
values={{}}
>
[Function]
</FormattedMessage>
Expand Down

0 comments on commit bc51374

Please sign in to comment.