summaryrefslogtreecommitdiff
path: root/test/snowpack-integration.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/snowpack-integration.test.js')
-rw-r--r--test/snowpack-integration.test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/snowpack-integration.test.js b/test/snowpack-integration.test.js
index e14d94a73..097550d39 100644
--- a/test/snowpack-integration.test.js
+++ b/test/snowpack-integration.test.js
@@ -13,7 +13,7 @@ const SnowpackDev = suite('snowpack.dev');
let runtime, cwd, setupError;
SnowpackDev.before(async () => {
-// Bug: Snowpack config is still loaded relative to the current working directory.
+ // Bug: Snowpack config is still loaded relative to the current working directory.
cwd = process.cwd();
process.chdir(new URL('../examples/snowpack/', import.meta.url).pathname);
@@ -26,7 +26,7 @@ SnowpackDev.before(async () => {
try {
runtime = await createRuntime(astroConfig, logging);
- } catch(err) {
+ } catch (err) {
console.error(err);
setupError = err;
}
@@ -34,7 +34,7 @@ SnowpackDev.before(async () => {
SnowpackDev.after(async () => {
process.chdir(cwd);
- await runtime && runtime.shutdown();
+ (await runtime) && runtime.shutdown();
});
async function* allPageFiles(root) {
@@ -72,7 +72,7 @@ SnowpackDev('Can load every page', async () => {
}
const result = await runtime.load(pathname);
if (result.statusCode === 500) {
- failed.push({...result, pathname});
+ failed.push({ ...result, pathname });
continue;
}
assert.equal(result.statusCode, 200, `Loading ${pathname}`);