This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fastify tests
- Loading branch information
Showing
22 changed files
with
7,562 additions
and
7,805 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 was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
__tests__/server/middleware/__snapshots__/sendHtml.spec.js.snap
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
__tests__/server/middleware/__snapshots__/setAppVersionHeader.spec.js.snap
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`csp adds ip and localhost to csp in development 1`] = `"default-src 'none'; script-src 'nonce-00000000-0000-0000-0000-000000000000' 0.0.0.0:* localhost:* ws://localhost:* 'self'; connect-src 0.0.0.0:* localhost:* ws://localhost:* 'self';"`; | ||
|
||
exports[`csp updateCSP updates cspCache with given csp 1`] = `"default-src 'self';"`; |
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
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
__tests__/server/plugins/reactHtml/__snapshots__/index.spec.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`reactHtml renderModuleScripts adds cache busting clientCacheRevision from module map to each module script src if NODE_ENV is production 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js?clientCacheRevision=123" crossorigin="anonymous" integrity="nggdfhr34"></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts does not add cache busting clientCacheRevision from module map to each module script src if NODE_ENV is development 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js" crossorigin="anonymous" ></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts does not add cache busting clientCacheRevision if not present 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js" crossorigin="anonymous" integrity="nggdfhr34"></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts send a rendered page keeping correctly ordered modules 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js" crossorigin="anonymous" integrity="dhhfsdfwer"></script><script src="https://example.com/cdn/a/2.2.2/a.browser.js" crossorigin="anonymous" integrity="fhgnt543"></script><script src="https://example.com/cdn/b/2.2.2/b.browser.js" crossorigin="anonymous" integrity="yhrtrhw3"></script><script src="https://example.com/cdn/c/2.2.2/c.browser.js" crossorigin="anonymous" integrity="323egdsbf"></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts send a rendered page with correctly ordered modules 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js" crossorigin="anonymous" integrity="dhhfsdfwer"></script><script src="https://example.com/cdn/a/2.2.2/a.browser.js" crossorigin="anonymous" integrity="fhgnt543"></script><script src="https://example.com/cdn/b/2.2.2/b.browser.js" crossorigin="anonymous" integrity="yhrtrhw3"></script><script src="https://example.com/cdn/c/2.2.2/c.browser.js" crossorigin="anonymous" integrity="323egdsbf"></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts send a rendered page with module script tags with integrity attribute if NODE_ENV is production 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js?clientCacheRevision=123" crossorigin="anonymous" integrity="nggdfhr34"></script>"`; | ||
|
||
exports[`reactHtml renderModuleScripts sends a rendered page with cross origin scripts 1`] = `"<script src="https://example.com/cdn/test-root/2.2.2/test-root.browser.js" crossorigin="anonymous" ></script>"`; |
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.