Skip to content

Commit 630290e

Browse files
committed
chore: apply all prettier fixes
1 parent f2893a5 commit 630290e

File tree

4 files changed

+25
-24
lines changed

4 files changed

+25
-24
lines changed

playwright.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { defineConfig, devices } from '@playwright/test';
1+
import { defineConfig, devices } from '@playwright/test'
22

33
/**
44
* Read environment variables from file.
55
* https://github.com/motdotla/dotenv
66
*/
77
// require('dotenv').config();
88

9-
const baseURL = 'http://localhost:5173';
9+
const baseURL = 'http://localhost:5173'
1010

1111
/**
1212
* See https://playwright.dev/docs/test-configuration.
@@ -31,25 +31,25 @@ export default defineConfig({
3131
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3232
trace: 'on-first-retry',
3333

34-
screenshot: 'only-on-failure',
34+
screenshot: 'only-on-failure'
3535
},
3636

3737
/* Configure projects for major browsers */
3838
projects: [
3939
{
4040
name: 'chromium',
41-
use: { ...devices['Desktop Chrome'] },
41+
use: { ...devices['Desktop Chrome'] }
4242
},
4343

4444
{
4545
name: 'firefox',
46-
use: { ...devices['Desktop Firefox'] },
46+
use: { ...devices['Desktop Firefox'] }
4747
},
4848

4949
{
5050
name: 'webkit',
51-
use: { ...devices['Desktop Safari'] },
52-
},
51+
use: { ...devices['Desktop Safari'] }
52+
}
5353

5454
/* Test against mobile viewports. */
5555
// {
@@ -76,6 +76,6 @@ export default defineConfig({
7676
webServer: {
7777
command: 'yarn dev',
7878
url: baseURL,
79-
reuseExistingServer: !process.env.CI,
80-
},
81-
});
79+
reuseExistingServer: !process.env.CI
80+
}
81+
})

src/constants/projects.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export const COMING_SOON_PROJECTS: Array<INotifyApp> = [
3535
{
3636
id: 'chainspot',
3737
name: 'Chainspot',
38-
description: 'Bridge&swap across 27 chains at the best rates and research data about 100+ Web3 products.',
38+
description:
39+
'Bridge&swap across 27 chains at the best rates and research data about 100+ Web3 products.',
3940
url: 'https://app.chainspot.io/',
4041
isComingSoon: true,
4142
isVerified: false,

src/contexts/W3iContext/hooks/notifyHooks.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ export const useNotifyState = (w3iProxy: Web3InboxProxy, proxyReady: boolean) =>
5151
* load in progress state using interval until it is
5252
*/
5353
useEffect(() => {
54-
if(watchSubscriptionsComplete) {
55-
return noop;
54+
if (watchSubscriptionsComplete) {
55+
return noop
5656
}
5757
// Account for sync init
5858
const intervalId = setInterval(() => {
59-
if (notifyClient?.hasFinishedInitialLoad()) {
60-
setWatchSubscriptionsComplete(true)
61-
return noop;
62-
}
59+
if (notifyClient?.hasFinishedInitialLoad()) {
60+
setWatchSubscriptionsComplete(true)
61+
return noop
62+
}
6363
refreshNotifyState()
6464
}, 100)
6565

tests/home.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { test, expect } from '@playwright/test';
1+
import { expect, test } from '@playwright/test'
22

33
test('has title', async ({ page }) => {
4-
await page.goto("/");
5-
await expect(page).toHaveTitle(/Web3Inbox/);
6-
});
4+
await page.goto('/')
5+
await expect(page).toHaveTitle(/Web3Inbox/)
6+
})
77

88
test('welcome message', async ({ page }) => {
9-
await page.goto("/");
10-
await expect(page.getByText("Welcome to Web3Inbox")).toBeVisible();
11-
});
9+
await page.goto('/')
10+
await expect(page.getByText('Welcome to Web3Inbox')).toBeVisible()
11+
})

0 commit comments

Comments
 (0)