Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Add snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruth Ogendi committed Apr 14, 2020
1 parent 92e6448 commit 86036d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/components/psammead-amp-geo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/psammead-amp-geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"amp-geo",
"geo"
]
}
}
12 changes: 5 additions & 7 deletions packages/components/psammead-amp-geo/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,11 @@ const ampGeoData = {
};

const jsonInlinedScript = data => (
<>
<script
type="application/json"
/* eslint-disable-next-line react/no-danger */
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
/>
</>
<script
type="application/json"
/* eslint-disable-next-line react/no-danger */
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
/>
);

const AmpGeo = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AMP Boilerplate JavaScript should render AMP AD 1`] = `
<script
async=""
custom-element="amp-ad"
src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"
/>
`;

exports[`AMP Boilerplate JavaScript should render AMP Access JS 1`] = `
<script
async=""
Expand Down

0 comments on commit 86036d5

Please sign in to comment.