chore: use undefined for TS 3.8 compat
This commit is contained in:
parent
5fac65589b
commit
189a0a3b19
@ -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('')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user