Skip to content

Commit

Permalink
Merge pull request #7542 from apollographql/maya/04-2023/fix-tests
Browse files Browse the repository at this point in the history
Update getEmbeddedExplorerHTML.test.ts
  • Loading branch information
mayakoneval authored May 2, 2023
2 parents f7157f4 + e9317e1 commit 4289753
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .changeset/fuzzy-icons-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ describe('Embedded Explorer Landing Page Config HTML', () => {
},
graphRef: 'graph@current',
};
expect(getEmbeddedExplorerHTML(cdnVersion, config, apolloServerVersion))
.toMatchInlineSnapshot(`
expect(
getEmbeddedExplorerHTML(cdnVersion, config, apolloServerVersion, 'nonce'),
).toMatchInlineSnapshot(`
<div class="fallback">
<h1>
Welcome to Apollo Server
Expand All @@ -223,9 +224,11 @@ describe('Embedded Explorer Landing Page Config HTML', () => {
id="embeddableExplorer"
>
</div>
<script src="https://embeddable-explorer.cdn.apollographql.com/_latest/embeddable-explorer.umd.production.min.js?runtime=%40apollo%2Fserver%404.0.0">
<script nonce="nonce"
src="https://embeddable-explorer.cdn.apollographql.com/_latest/embeddable-explorer.umd.production.min.js?runtime=%40apollo%2Fserver%404.0.0"
>
</script>
<script>
<script nonce="nonce">
var endpointUrl = window.location.href;
var embeddedExplorerConfig = {"graphRef":"graph@current","target":"#embeddableExplorer","initialState":{"headers":{"authorization":"true"},"displayOptions":{}},"persistExplorerState":false,"includeCookies":true,"runtime":"@apollo/[email protected]","runTelemetry":false};
new window.EmbeddedExplorer({
Expand Down

0 comments on commit 4289753

Please sign in to comment.