]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use undefined for TS 3.8 compat
authorEvan You <yyx990803@gmail.com>
Fri, 21 Feb 2020 10:27:08 +0000 (11:27 +0100)
committerEvan You <yyx990803@gmail.com>
Fri, 21 Feb 2020 10:38:41 +0000 (11:38 +0100)
packages/runtime-dom/__tests__/modules/style.spec.ts

index 28eac3b426ba978ae91d5d489c1c5d21c1360fc5..08667275081effdf027d1dfde946216bdcdd6350 100644 (file)
@@ -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('')
   })