Skip to content

Commit bea32f5

Browse files
authored
chore: fix typos (#1039)
1 parent 9ac7c48 commit bea32f5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/image-comparison-core/src/helpers/afterScreenshot.interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface ScreenshotFileNameOptions {
5858
deviceName: string;
5959
// The device pixel ratio
6060
devicePixelRatio: number;
61-
// The string that needs to be formated
61+
// The string that needs to be formatted
6262
formatImageName: string;
6363
// Is this a mobile
6464
isMobile: boolean;

packages/visual-service/src/storybook/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function checkStorybookIsRunning(url: string) {
6060
try {
6161
const res = await fetch(url, { method: 'GET', headers: {} })
6262
if (res.status !== 200) {
63-
throw new Error(`Unxpected status: ${res.status}`)
63+
throw new Error(`Unexpected status: ${res.status}`)
6464
}
6565
} catch (_e) {
6666
log.error(`It seems that the Storybook instance is not running at: ${url}. Are you sure it's running?`)

tests/specs/checkMethodsFolders.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('@wdio/visual-service check methods folder options', () => {
1111
await browser.pause(500)
1212
})
1313

14-
// Chrome remembers the last postion when the url is loaded again, this will reset it.
14+
// Chrome remembers the last position when the url is loaded again, this will reset it.
1515
afterEach(async () => await browser.execute('window.scrollTo(0, 0);', []))
1616

1717
describe('checkFullPageScreen method with folder options', () => {

tests/specs/multiremote.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('@wdio/visual-service check that multi remote is working', () => {
1212
await multiremotebrowser.chromeBrowserTwo.pause(500)
1313
})
1414

15-
// Chrome remembers the last postion when the url is loaded again, this will reset it.
15+
// Chrome remembers the last position when the url is loaded again, this will reset it.
1616
afterEach(async () => {
1717
await multiremotebrowser.chromeBrowserOne.execute(
1818
'window.scrollTo(0, 0);',

tests/specs/saveMethodsFolders.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('@wdio/visual-service save methods folder options', () => {
1313
await browser.pause(500)
1414
})
1515

16-
// Chrome remembers the last postion when the url is loaded again, this will reset it.
16+
// Chrome remembers the last position when the url is loaded again, this will reset it.
1717
afterEach(async () => await browser.execute('window.scrollTo(0, 0);', []))
1818

1919
describe('saveFullPageScreen method with folder options', () => {

0 commit comments

Comments
 (0)