diff options
Diffstat (limited to 'test/react-component.test.js')
-rw-r--r-- | test/react-component.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/react-component.test.js b/test/react-component.test.js index df57fa7c6..85892a623 100644 --- a/test/react-component.test.js +++ b/test/react-component.test.js @@ -13,19 +13,19 @@ React.before(async () => { 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; } }); React.after(async () => { - await runtime.shutdown(); + (await runtime) && runtime.shutdown(); }); React('No error creating the runtime', () => { @@ -41,4 +41,4 @@ React('Can load page', async () => { assert.equal($('h2').text(), 'Hello world!'); }); -React.run();
\ No newline at end of file +React.run(); |