Skip to content

Commit dc9b103

Browse files
committed
test: Updating tests to account for entry edits
1 parent efc06ce commit dc9b103

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/cli/tests/images/build.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ exports.default = {
1414
'ssr-build/ssr-bundle.css': 2346,
1515
'ssr-build/ssr-bundle.css.map': 3603,
1616

17-
'bundle.cb5bc.js': 21563,
18-
'bundle.cb5bc.js.map': 86009,
19-
'bundle.cb5bc.legacy.js': 22586,
20-
'bundle.cb5bc.legacy.js.map': 107151,
17+
'bundle.263af.js': 21563,
18+
'bundle.263af.js.map': 86009,
19+
'bundle.263af.legacy.js': 22586,
20+
'bundle.263af.legacy.js.map': 107151,
2121
'bundle.6329a.css': 1173,
2222
'bundle.6329a.css.map': 2165,
2323

@@ -173,7 +173,7 @@ exports.publicPath = `
173173
</head>
174174
<body>
175175
<h1>Public path test</h1>
176-
<script type="__PREACT_CLI_DATA__">%7B%22preRenderData%22:%7B%22url%22:%22/%22%7D%7D</script>
176+
<script type="__PREACT_CLI_DATA__">%7B%22prerenderData%22:%7B%22url%22:%22/%22%7D%7D</script>
177177
<script type="module" src="/example-path/bundle.\\w{5}.js"></script>
178178
<script nomodule="" src="/example-path/dom-polyfills.\\w{5}.js"></script>
179179
<script nomodule="" src="/example-path/es-polyfills.js"></script>

packages/cli/tests/service-worker.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ describe('service worker', () => {
102102
await page.$$eval('script[type=__PREACT_CLI_DATA__]', nodes =>
103103
nodes.map(n => n.innerText)
104104
)
105-
).toEqual(['%7B%22preRenderData%22:%7B%22url%22:%22/200.html%22%7D%7D']);
105+
).toEqual(['%7B%22prerenderData%22:%7B%22url%22:%22/200.html%22%7D%7D']);
106106
});
107107
});

0 commit comments

Comments
 (0)