chore: use undefined for TS 3.8 compat

This commit is contained in:
Evan You 2020-02-21 11:27:08 +01:00
parent 5fac65589b
commit 189a0a3b19

View File

@ -21,7 +21,7 @@ describe(`module style`, () => {
it('remove if falsy value', () => { it('remove if falsy value', () => {
const el = document.createElement('div') 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('') expect(el.style.cssText.replace(/\s/g, '')).toBe('')
}) })