diff options
author | 2021-03-26 13:14:32 -0600 | |
---|---|---|
committer | 2021-03-26 13:14:32 -0600 | |
commit | 3ddd3594f0afa613c75e7f9cf5e373a6d0269d18 (patch) | |
tree | 81dff17635f255a3df72e72748b032359986d72a /test/astro-markdown.test.js | |
parent | 11637df5791863cde061c52d5c2dc1654cc3f30f (diff) | |
download | astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.tar.gz astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.tar.zst astro-3ddd3594f0afa613c75e7f9cf5e373a6d0269d18.zip |
Absorb Snowpack config inside Astro (#32)
* Absorb Snowpack config inside Astro
* Add basic README
* Format tests
* Update esbuild
* Format tests
Diffstat (limited to 'test/astro-markdown.test.js')
-rw-r--r-- | test/astro-markdown.test.js | 10 |
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(); |