Преглед изворни кода

chore: use undefined for TS 3.8 compat

Evan You пре 6 година
родитељ
комит
189a0a3b19
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/runtime-dom/__tests__/modules/style.spec.ts

+ 1 - 1
packages/runtime-dom/__tests__/modules/style.spec.ts

@@ -21,7 +21,7 @@ describe(`module style`, () => {
 
   it('remove if falsy value', () => {
     const el = document.createElement('div')
-    patchStyle(el, { color: 'red' }, { color: null })
+    patchStyle(el, { color: 'red' }, { color: undefined })
     expect(el.style.cssText.replace(/\s/g, '')).toBe('')
   })