summaryrefslogtreecommitdiff
path: root/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/units/dev/collections-mixed-content-errors.test.js')
-rw-r--r--packages/astro/test/units/dev/collections-mixed-content-errors.test.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/astro/test/units/dev/collections-mixed-content-errors.test.js b/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
index 73ce15377..3417650fc 100644
--- a/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
+++ b/packages/astro/test/units/dev/collections-mixed-content-errors.test.js
@@ -8,13 +8,15 @@ const root = new URL('../../fixtures/content-mixed-errors/', import.meta.url);
async function sync({ fs }) {
try {
- await _sync({
- inlineConfig: {
+ await _sync(
+ {
root: fileURLToPath(root),
logLevel: 'silent',
},
- fs,
- });
+ {
+ fs,
+ },
+ );
return 0;
} catch (_) {
return 1;
@@ -121,11 +123,7 @@ title: Post
root,
);
- try {
- const res = await sync({ fs });
- assert.equal(res, 0);
- } catch (e) {
- assert.fail(`Did not expect sync to throw: ${e.message}`);
- }
+ const res = await sync({ fs });
+ assert.equal(res, 0);
});
});