Преглед на файлове

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('')
   })