From 53ebc3a030aac573eba6409cf3c604a4dbf9c456 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 14 Mar 2024 10:04:29 -0400 Subject: [PATCH] chore(test): fix typo occured => occurred --- .../next-image-legacy/default/pages/on-error.js | 6 +++--- .../next-image-legacy/default/test/index.test.ts | 6 +++--- .../next-image-new/app-dir/app/on-error/page.js | 6 +++--- .../next-image-new/app-dir/test/index.test.ts | 8 ++++---- .../next-image-new/default/pages/on-error.js | 6 +++--- .../next-image-new/default/test/index.test.ts | 8 ++++---- test/turbopack-tests-manifest.json | 12 ++++++------ 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/test/integration/next-image-legacy/default/pages/on-error.js b/test/integration/next-image-legacy/default/pages/on-error.js index 43f9d49e0f397..806768df48bf1 100644 --- a/test/integration/next-image-legacy/default/pages/on-error.js +++ b/test/integration/next-image-legacy/default/pages/on-error.js @@ -6,7 +6,7 @@ const Page = () => {

Test onError

- If error occured while loading image, native onError should be called. + If error occurred while loading image, native onError should be called.

@@ -17,7 +17,7 @@ const Page = () => { } function ImageWithMessage({ id, ...props }) { - const [msg, setMsg] = useState('no error occured') + const [msg, setMsg] = useState('no error occurred') const style = props.layout === 'fill' ? { position: 'relative', width: '64px', height: '64px' } @@ -29,7 +29,7 @@ function ImageWithMessage({ id, ...props }) { { - const msg = `error occured while loading ${e.target.id}` + const msg = `error occurred while loading ${e.target.id}` setMsg(msg) }} {...props} diff --git a/test/integration/next-image-legacy/default/test/index.test.ts b/test/integration/next-image-legacy/default/test/index.test.ts index beaac51148731..45efc1ef5466b 100644 --- a/test/integration/next-image-legacy/default/test/index.test.ts +++ b/test/integration/next-image-legacy/default/test/index.test.ts @@ -398,7 +398,7 @@ function runTests(mode) { ) }) - it('should callback native onError when error occured while loading image', async () => { + it('should callback native onError when error occurred while loading image', async () => { let browser = await webdriver(appPort, '/on-error') await check( @@ -412,11 +412,11 @@ function runTests(mode) { ) await check( () => browser.eval(`document.getElementById("msg1").textContent`), - 'no error occured' + 'no error occurred' ) await check( () => browser.eval(`document.getElementById("msg2").textContent`), - 'error occured while loading img2' + 'error occurred while loading img2' ) }) diff --git a/test/integration/next-image-new/app-dir/app/on-error/page.js b/test/integration/next-image-new/app-dir/app/on-error/page.js index fb32b95e3d258..48f8849bc87b0 100644 --- a/test/integration/next-image-new/app-dir/app/on-error/page.js +++ b/test/integration/next-image-new/app-dir/app/on-error/page.js @@ -9,7 +9,7 @@ const Page = () => {

Test onError

- If error occured while loading image, native onError should be called. + If error occurred while loading image, native onError should be called.