Skip to content

Commit 9b531d5

Browse files
committed
test: rectify accidentally passing test
1 parent 7d57432 commit 9b531d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-dom/__tests__/patchProps.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,11 @@ describe('runtime-dom: props patching', () => {
181181
// anyway, here we just want to make sure Vue doesn't set non-string props
182182
// to an empty string on nullish values - it should reset to its default
183183
// value.
184+
el.srcObject = null
184185
const initialValue = el.srcObject
185186
const fakeObject = {}
186187
patchProp(el, 'srcObject', null, fakeObject)
187-
expect(el.srcObject).not.toBe(fakeObject)
188+
expect(el.srcObject).toBe(fakeObject)
188189
patchProp(el, 'srcObject', null, null)
189190
expect(el.srcObject).toBe(initialValue)
190191
})

0 commit comments

Comments
 (0)