summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-03-27 19:37:29 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-03-27 19:37:29 +0000
commit4b899d2257f9f9d3b695dd6f3982cfa88d581ef6 (patch)
tree094c5d22221264195d92eac3a294d1e33c4db602
parent1f783e32075c20b13063599696644f5d47b75d8d (diff)
downloadastro-4b899d2257f9f9d3b695dd6f3982cfa88d581ef6.tar.gz
astro-4b899d2257f9f9d3b695dd6f3982cfa88d581ef6.tar.zst
astro-4b899d2257f9f9d3b695dd6f3982cfa88d581ef6.zip
[ci] format
-rw-r--r--packages/astro/src/content/types-generator.ts5
-rw-r--r--packages/astro/test/units/content-collections/frontmatter.test.js6
2 files changed, 4 insertions, 7 deletions
diff --git a/packages/astro/src/content/types-generator.ts b/packages/astro/src/content/types-generator.ts
index ab0e254ad..5f9563a12 100644
--- a/packages/astro/src/content/types-generator.ts
+++ b/packages/astro/src/content/types-generator.ts
@@ -235,10 +235,7 @@ export async function createContentTypesGenerator({
// Errors still crash dev from *starting*.
}
};
- debounceTimeout = setTimeout(
- runEventsSafe,
- 50 /* debounce to batch chokidar events */
- );
+ debounceTimeout = setTimeout(runEventsSafe, 50 /* debounce to batch chokidar events */);
}
async function runEvents(opts?: EventOpts) {
diff --git a/packages/astro/test/units/content-collections/frontmatter.test.js b/packages/astro/test/units/content-collections/frontmatter.test.js
index d4a9f1ece..c4c9826fd 100644
--- a/packages/astro/test/units/content-collections/frontmatter.test.js
+++ b/packages/astro/test/units/content-collections/frontmatter.test.js
@@ -13,7 +13,7 @@ function getTypesDts() {
const typesdtsURL = new URL('../../../src/content/template/types.d.ts', import.meta.url);
const relpath = slash(path.relative(fileURLToPath(root), fileURLToPath(typesdtsURL)));
return {
- [relpath]: nodeFS.readFileSync(typesdtsURL, 'utf-8')
+ [relpath]: nodeFS.readFileSync(typesdtsURL, 'utf-8'),
};
}
@@ -65,8 +65,8 @@ describe('frontmatter', () => {
`
);
triggerFSEvent(container, fs, '/src/content/posts/blog.md', 'change');
- await new Promise(resolve => setTimeout(resolve, 100));
+ await new Promise((resolve) => setTimeout(resolve, 100));
// Note, if we got here, it didn't crash
});
- })
+ });
});