Skip to content

Commit

Permalink
add test case for .html prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
honai committed Jul 17, 2021
1 parent 2701b5b commit 25481ee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions packages/kit/src/core/adapt/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ suite('prerender', async () => {
};

/** @type {import('types/internal').BuildData} */
const build_data = { client: [], server: [], static: [], entries: ['/nested'] };
const build_data = { client: [], server: [], static: [], entries: ['/nested', '/noindex.html'] };

const utils = get_utils({ cwd, config, build_data, log });

Expand All @@ -103,7 +103,7 @@ suite('prerender', async () => {
dest
});

assert.equal(glob('**', { cwd: `${prerendered_files}` }), glob('**', { cwd: dest }));
assert.equal(glob('**', { cwd: `${prerendered_files}` }), glob('**', { cwd: dest, flush: true }));

rimraf.sync(dest);
});
Expand Down

0 comments on commit 25481ee

Please sign in to comment.