Skip to content

Commit

Permalink
test: Updating tests to account for entry edits
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Feb 2, 2023
1 parent efc06ce commit dc9b103
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/cli/tests/images/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ exports.default = {
'ssr-build/ssr-bundle.css': 2346,
'ssr-build/ssr-bundle.css.map': 3603,

'bundle.cb5bc.js': 21563,
'bundle.cb5bc.js.map': 86009,
'bundle.cb5bc.legacy.js': 22586,
'bundle.cb5bc.legacy.js.map': 107151,
'bundle.263af.js': 21563,
'bundle.263af.js.map': 86009,
'bundle.263af.legacy.js': 22586,
'bundle.263af.legacy.js.map': 107151,
'bundle.6329a.css': 1173,
'bundle.6329a.css.map': 2165,

Expand Down Expand Up @@ -173,7 +173,7 @@ exports.publicPath = `
</head>
<body>
<h1>Public path test</h1>
<script type="__PREACT_CLI_DATA__">%7B%22preRenderData%22:%7B%22url%22:%22/%22%7D%7D</script>
<script type="__PREACT_CLI_DATA__">%7B%22prerenderData%22:%7B%22url%22:%22/%22%7D%7D</script>
<script type="module" src="/example-path/bundle.\\w{5}.js"></script>
<script nomodule="" src="/example-path/dom-polyfills.\\w{5}.js"></script>
<script nomodule="" src="/example-path/es-polyfills.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tests/service-worker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ describe('service worker', () => {
await page.$$eval('script[type=__PREACT_CLI_DATA__]', nodes =>
nodes.map(n => n.innerText)
)
).toEqual(['%7B%22preRenderData%22:%7B%22url%22:%22/200.html%22%7D%7D']);
).toEqual(['%7B%22prerenderData%22:%7B%22url%22:%22/200.html%22%7D%7D']);
});
});

0 comments on commit dc9b103

Please sign in to comment.