Skip to content

Commit 0ad7aad

Browse files
Fix Svelte tests
1 parent cbcf42a commit 0ad7aad

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

integrations/vite/svelte.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ test(
100100

101101
await fs.expectFileToContain(files[0][0], [
102102
candidate`underline`,
103-
'.global{color:var(--color-green-500,oklch(.723 .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
104-
/\.local.svelte-.*\{color:var\(--color-red-500\,oklch\(\.637 \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
103+
'.global{color:var(--color-green-500,oklch(72.3% .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
104+
/\.local.svelte-.*\{color:var\(--color-red-500\,oklch\(63\.7% \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
105105
/@keyframes globalKeyframes\{/,
106106
/@keyframes svelte-.*-localKeyframes\{/,
107107
])
@@ -213,10 +213,10 @@ test(
213213
let [, css] = files[0]
214214
expect(css).toContain(candidate`underline`)
215215
expect(css).toContain(
216-
'.global{color:var(--color-green-500,oklch(.723 .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
216+
'.global{color:var(--color-green-500,oklch(72.3% .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
217217
)
218218
expect(css).toMatch(
219-
/\.local.svelte-.*\{color:var\(--color-red-500,oklch\(\.637 \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
219+
/\.local.svelte-.*\{color:var\(--color-red-500,oklch\(63\.7% \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
220220
)
221221
expect(css).toMatch(/@keyframes globalKeyframes\{/)
222222
expect(css).toMatch(/@keyframes svelte-.*-localKeyframes\{/)
@@ -238,15 +238,15 @@ test(
238238
let [, css] = files[0]
239239
expect(css).toContain(candidate`font-bold`)
240240
expect(css).toContain(
241-
'.global{color:var(--color-green-500,oklch(.723 .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
241+
'.global{color:var(--color-green-500,oklch(72.3% .219 149.579));animation:2s ease-in-out infinite globalKeyframes}',
242242
)
243243
expect(css).toMatch(
244-
/\.local.svelte-.*\{color:var\(--color-red-500,oklch\(\.637 \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
244+
/\.local.svelte-.*\{color:var\(--color-red-500,oklch\(63\.7% \.237 25\.331\)\);animation:2s ease-in-out infinite svelte-.*-localKeyframes\}/,
245245
)
246246
expect(css).toMatch(/@keyframes globalKeyframes\{/)
247247
expect(css).toMatch(/@keyframes svelte-.*-localKeyframes\{/)
248248
expect(css).toMatch(
249-
/\.bar.svelte-.*\{color:var\(--color-pink-500,oklch\(\.656 \.241 354\.308\)\)\}/,
249+
/\.bar.svelte-.*\{color:var\(--color-pink-500,oklch\(65\.6% \.241 354\.308\)\)\}/,
250250
)
251251
})
252252
},

0 commit comments

Comments
 (0)