summaryrefslogtreecommitdiff
path: root/test/astro-markdown.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/astro-markdown.test.js')
-rw-r--r--test/astro-markdown.test.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/astro-markdown.test.js b/test/astro-markdown.test.js
index 7f40bdd05..cbab25e36 100644
--- a/test/astro-markdown.test.js
+++ b/test/astro-markdown.test.js
@@ -10,22 +10,22 @@ let runtime, setupError;
Markdown.before(async () => {
const astroConfig = await loadConfig(new URL('./fixtures/astro-markdown', import.meta.url).pathname);
-
+
const logging = {
level: 'error',
- dest: process.stderr
+ dest: process.stderr,
};
try {
runtime = await createRuntime(astroConfig, logging);
- } catch(err) {
+ } catch (err) {
console.error(err);
setupError = err;
}
});
Markdown.after(async () => {
- runtime && runtime.shutdown();
+ (await runtime) && runtime.shutdown();
});
Markdown('No errors creating a runtime', () => {
@@ -42,4 +42,4 @@ Markdown('Can load markdown pages with hmx', async () => {
assert.ok($('#test').length, 'There is a div added via a component from markdown');
});
-Markdown.run(); \ No newline at end of file
+Markdown.run();