summaryrefslogtreecommitdiff
path: root/test/astro-dynamic.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/astro-dynamic.test.js')
-rw-r--r--test/astro-dynamic.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/astro-dynamic.test.js b/test/astro-dynamic.test.js
index 41235b6ce..0dcc30654 100644
--- a/test/astro-dynamic.test.js
+++ b/test/astro-dynamic.test.js
@@ -15,14 +15,14 @@ DynamicComponents('Loads client-only packages', async ({ runtime }) => {
// Grab the react-dom import
const exp = /import\("(.+?)"\)/g;
let match, reactDomURL;
- while(match = exp.exec(result.contents)) {
- if(match[1].includes('react-dom')) {
+ while ((match = exp.exec(result.contents))) {
+ if (match[1].includes('react-dom')) {
reactDomURL = match[1];
}
}
assert.ok(reactDomURL, 'React dom is on the page');
-
+
result = await runtime.load(reactDomURL);
assert.equal(result.statusCode, 200, 'Can load react-dom');
});