Skip to content

Commit

Permalink
chore: use undefined for TS 3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 21, 2020
1 parent 5fac655 commit 189a0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/__tests__/modules/style.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
})

Expand Down

0 comments on commit 189a0a3

Please sign in to comment.