diff --git a/packages/runtime-core/__tests__/hydration.spec.ts b/packages/runtime-core/__tests__/hydration.spec.ts index e7596a019..763356c43 100644 --- a/packages/runtime-core/__tests__/hydration.spec.ts +++ b/packages/runtime-core/__tests__/hydration.spec.ts @@ -2205,16 +2205,18 @@ describe('SSR hydration', () => { expect(`Hydration style mismatch`).not.toHaveBeenWarned() }) - test('should not warn on css v-bind non-string & non-number & empty string value', () => { + test('style var with falsy values', () => { const container = document.createElement('div') container.innerHTML = `
` const app = createSSRApp({ setup() { const value1 = ref(null) const value2 = ref('') + const value3 = ref(undefined) useCssVars(() => ({ foo: value1.value, bar: value2.value, + baz: value3.value, })) return () => h(Child) },