Sfoglia il codice sorgente

chore: use undefined for TS 3.8 compat

Evan You 6 anni fa
parent
commit
189a0a3b19
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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('')
   })