summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-02-08 21:44:40 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-02-08 21:44:40 +0000
commite4b2a2e3c7f1dc86afc31144e6db531dd0ed8cfc (patch)
tree489eca3b4e335a61fffcec605a3728fc69937b35
parent6fa6025b34b9447e142c4788c0cdc2dfe03f334f (diff)
downloadastro-e4b2a2e3c7f1dc86afc31144e6db531dd0ed8cfc.tar.gz
astro-e4b2a2e3c7f1dc86afc31144e6db531dd0ed8cfc.tar.zst
astro-e4b2a2e3c7f1dc86afc31144e6db531dd0ed8cfc.zip
[ci] format
-rw-r--r--packages/astro/test/test-utils.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js
index 13d3aa00a..856c0b09f 100644
--- a/packages/astro/test/test-utils.js
+++ b/packages/astro/test/test-utils.js
@@ -167,7 +167,10 @@ export async function loadFixture(inlineConfig) {
},
pathExists: (p) => fs.existsSync(new URL(p.replace(/^\//, ''), config.outDir)),
readFile: (filePath, encoding) =>
- fs.promises.readFile(new URL(filePath.replace(/^\//, ''), config.outDir), encoding === undefined ? 'utf8' : encoding),
+ fs.promises.readFile(
+ new URL(filePath.replace(/^\//, ''), config.outDir),
+ encoding === undefined ? 'utf8' : encoding
+ ),
readdir: (fp) => fs.promises.readdir(new URL(fp.replace(/^\//, ''), config.outDir)),
glob: (p) =>
fastGlob(p, {