optional chaining
This commit is contained in:
parent
59f3ca65ca
commit
cf85b00c0a
26 changed files with 34 additions and 34 deletions
2
test/fixtures/setup_test.js
vendored
2
test/fixtures/setup_test.js
vendored
|
|
@ -132,7 +132,7 @@ export const waitForEvent = (
|
|||
return vi.waitFor(
|
||||
() => {
|
||||
const e = wrapper.emitted(event)
|
||||
if (e && e.length >= timesEmitted) {
|
||||
if (e?.length >= timesEmitted) {
|
||||
return
|
||||
}
|
||||
throw new Error('event is not emitted')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue