Skip to content

Commit 035a2ca

Browse files
authored
Update packages/kit/test/prerendering/basics/test/test.js
1 parent e814b60 commit 035a2ca

File tree

1 file changed

+1
-4
lines changed
  • packages/kit/test/prerendering/basics/test

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import * as assert from 'uvu/assert';
66
const build = fileURLToPath(new URL('../build', import.meta.url));
77

88
/** @param {string} file */
9-
const read = (file) => fs.readFileSync(`${build}/${file}`, 'utf-8');
10-
11-
/** @param {string} file */
12-
const readNoUtf = (file) => fs.readFileSync(`${build}/${file}`);
9+
const read = (file, encoding = 'utf-8') => fs.readFileSync(`${build}/${file}`, encoding);
1310

1411
test('prerenders /', () => {
1512
const content = read('index.html');

0 commit comments

Comments
 (0)