From 0c715afdab2c3077b32793a41a7ddccb3be65c64 Mon Sep 17 00:00:00 2001 From: Artyom Alekseevich <47069814+FrankFMY@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:03:58 +0100 Subject: [PATCH] fix: correct spelling errors in test files (#17630) Fix "wich" -> "which", "aswell" -> "as well" in CSS global-block test, and "occurence" -> "occurrence" in sourcemaps test type definition. --- packages/svelte/tests/css/samples/global-block/expected.css | 4 ++-- packages/svelte/tests/css/samples/global-block/input.svelte | 4 ++-- packages/svelte/tests/sourcemaps/test.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/svelte/tests/css/samples/global-block/expected.css b/packages/svelte/tests/css/samples/global-block/expected.css index be1838fd98..ef68280093 100644 --- a/packages/svelte/tests/css/samples/global-block/expected.css +++ b/packages/svelte/tests/css/samples/global-block/expected.css @@ -39,7 +39,7 @@ /*}*/ } - /* ...wich is equivalent to `div :global { &.x { ...} }` ... */ + /* ...which is equivalent to `div :global { &.x { ...} }` ... */ div.svelte-xyz { &.x { color: green; @@ -51,7 +51,7 @@ color: green; } - /* ...and therefore `div { :global.x { ... }` aswell */ + /* ...and therefore `div { :global.x { ... }` as well */ div.svelte-xyz { &.x { color: green; diff --git a/packages/svelte/tests/css/samples/global-block/input.svelte b/packages/svelte/tests/css/samples/global-block/input.svelte index 86d438031a..1a9993bfe0 100644 --- a/packages/svelte/tests/css/samples/global-block/input.svelte +++ b/packages/svelte/tests/css/samples/global-block/input.svelte @@ -41,7 +41,7 @@ } } - /* ...wich is equivalent to `div :global { &.x { ...} }` ... */ + /* ...which is equivalent to `div :global { &.x { ...} }` ... */ div :global { &.x { color: green; @@ -53,7 +53,7 @@ color: green; } - /* ...and therefore `div { :global.x { ... }` aswell */ + /* ...and therefore `div { :global.x { ... }` as well */ div { :global.x { color: green; diff --git a/packages/svelte/tests/sourcemaps/test.ts b/packages/svelte/tests/sourcemaps/test.ts index 0ac0e6f905..6749483079 100644 --- a/packages/svelte/tests/sourcemaps/test.ts +++ b/packages/svelte/tests/sourcemaps/test.ts @@ -8,9 +8,9 @@ import { decode } from '@jridgewell/sourcemap-codec'; type SourceMapEntry = | string | { - /** If not the first occurence, but the nth should be found */ + /** If not the first occurrence, but the nth should be found */ idxOriginal?: number; - /** If not the first occurence, but the nth should be found */ + /** If not the first occurrence, but the nth should be found */ idxGenerated?: number; /** The original string to find */ str: string;