Skip to content

Commit 65e4e14

Browse files
committed
improve test
1 parent 29f5ebd commit 65e4e14

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// spa shell should still prererender when +page.server.js exists but it has no load function

packages/kit/test/prerendering/basics/test/tests.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test('renders a relative redirect', () => {
6161
});
6262

6363
test('renders a shell when SSR is turned off and there is no server data', () => {
64-
const content = read('redirect-no-ssr.html');
64+
const content = read('spa-shell.html');
6565
assert.match(
6666
content,
6767
/<!doctype html>\n<html lang="en">([\s]*?)<head>([\s]*?)<meta charset="utf-8" \/>([\s]*?)<meta name="viewport" content="width=device-width, initial-scale=1" \/>([\s\S]*?)<\/head>\n([\s]*?)<body>([\s]*?)<script>([\s\S]*?)<\/script>([\s]*?)<\/body>\n<\/html>/g

0 commit comments

Comments
 (0)