Explorar el Código

chore: use undefined for TS 3.8 compat

Evan You hace 6 años
padre
commit
189a0a3b19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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('')
   })