diff options
author | 2022-06-17 22:36:22 +0000 | |
---|---|---|
committer | 2022-06-17 22:36:22 +0000 | |
commit | 9b530bdece4c96fcfa3d2a60c783718401c30535 (patch) | |
tree | d267dd372be78fc784d765ca56e3cb0cbc2bc825 | |
parent | 12ec35feffd0d0fe24332078eda429dc587151ff (diff) | |
download | astro-9b530bdece4c96fcfa3d2a60c783718401c30535.tar.gz astro-9b530bdece4c96fcfa3d2a60c783718401c30535.tar.zst astro-9b530bdece4c96fcfa3d2a60c783718401c30535.zip |
[ci] format
Diffstat (limited to '')
-rw-r--r-- | packages/astro/e2e/shared-component-tests.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/packages/astro/e2e/shared-component-tests.js b/packages/astro/e2e/shared-component-tests.js index a43b46168..9981d3767 100644 --- a/packages/astro/e2e/shared-component-tests.js +++ b/packages/astro/e2e/shared-component-tests.js @@ -19,12 +19,7 @@ export function prepareTestFactory({ root }) { await devServer.stop(); }); - const createTests = ({ - pageUrl, - pageSourceFilePath, - componentFilePath, - counterCssFilePath, - }) => { + const createTests = ({ pageUrl, pageSourceFilePath, componentFilePath, counterCssFilePath }) => { test('server only', async ({ page, astro }) => { await page.goto(astro.resolveUrl(pageUrl)); @@ -132,7 +127,10 @@ export function prepareTestFactory({ root }) { // Edit the client:only component's slot text await astro.editFile(componentFilePath, (original) => - original.replace('Framework client:only component', 'Updated framework client:only component') + original.replace( + 'Framework client:only component', + 'Updated framework client:only component' + ) ); const label = page.locator('#client-only'); @@ -147,11 +145,11 @@ export function prepareTestFactory({ root }) { ); await expect(count, 'imported CSS updated').toHaveCSS('font-size', '24px'); - + // Revert our edits astro.resetAllFiles(); }); - } + }; return { test, |