Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: should clear previous css string value
  • Loading branch information
zh-lx committed Feb 21, 2024
commit 1c5cef10a7e9d3db1daf9cd7e1c2b7f940b0a6a6
2 changes: 1 addition & 1 deletion packages/runtime-dom/__tests__/patchStyle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe(`runtime-dom: style patching`, () => {
expect(el.style.display).toBe('flex')
})

it('should clear previous css string value', async () => {
it('should clear previous css string value', () => {
const el = document.createElement('div')
patchProp(el, 'style', {}, 'color:red')
expect(el.style.cssText.replace(/\s/g, '')).toBe('color:red;')
Expand Down