diff options
author | 2024-02-07 20:43:19 +0800 | |
---|---|---|
committer | 2024-02-07 20:43:19 +0800 | |
commit | 436841e97e0ecbf6e5e1658b2c1e272d7856cdc9 (patch) | |
tree | a8e1744f8fa4ce06420d72381a3659251e0ea9ae /packages/integrations/vue/test/app-entrypoint.test.js | |
parent | ce4283331f18c6178654dd705e3cf02efeef004a (diff) | |
download | astro-436841e97e0ecbf6e5e1658b2c1e272d7856cdc9.tar.gz astro-436841e97e0ecbf6e5e1658b2c1e272d7856cdc9.tar.zst astro-436841e97e0ecbf6e5e1658b2c1e272d7856cdc9.zip |
Use eslint-plugin-regexp (#9993)
Diffstat (limited to 'packages/integrations/vue/test/app-entrypoint.test.js')
-rw-r--r-- | packages/integrations/vue/test/app-entrypoint.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/vue/test/app-entrypoint.test.js b/packages/integrations/vue/test/app-entrypoint.test.js index 5cdae3c04..5c0437636 100644 --- a/packages/integrations/vue/test/app-entrypoint.test.js +++ b/packages/integrations/vue/test/app-entrypoint.test.js @@ -41,7 +41,7 @@ describe('App Entrypoint', () => { assert.notEqual(client, undefined); const js = await fixture.readFile(client); - assert.match(js, /\w+\.component\(\"Bar\"/gm); + assert.match(js, /\w+\.component\("Bar"/g); }); it('loads svg components without transforming them to assets', async () => { @@ -112,7 +112,7 @@ describe('App Entrypoint no export default', () => { const client = island.getAttribute('renderer-url'); assert.notEqual(client, undefined); const js = await fixture.readFile(client); - assert.doesNotMatch(js, /\w+\.component\(\"Bar\"/gm); + assert.doesNotMatch(js, /\w+\.component\("Bar"/g); }); it('loads svg components without transforming them to assets', async () => { @@ -151,7 +151,7 @@ describe('App Entrypoint relative', () => { assert.notEqual(client, undefined); const js = await fixture.readFile(client); - assert.doesNotMatch(js, /\w+\.component\(\"Bar\"/gm); + assert.doesNotMatch(js, /\w+\.component\("Bar"/g); }); }); @@ -182,7 +182,7 @@ describe('App Entrypoint /src/absolute', () => { assert.notEqual(client, undefined); const js = await fixture.readFile(client); - assert.doesNotMatch(js, /\w+\.component\(\"Bar\"/gm); + assert.doesNotMatch(js, /\w+\.component\("Bar"/g); }); }); |