Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 11bf948

Browse files
committed
Remove unnecessary guard
1 parent 465676f commit 11bf948

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

‎src/__tests__/cleanup-throw.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,8 @@ function cleanupAtWrapper(wrapper) {
9898
document.body.removeChild(wrapper.element.parentNode)
9999
}
100100

101-
try {
102-
wrapper.unmount()
103-
} finally {
104-
mountedWrappers.delete(wrapper)
105-
}
101+
wrapper.unmount()
102+
mountedWrappers.delete(wrapper)
106103
}
107104

108105
// Vue Testing Library's version of fireEvent will call DOM Testing Library's

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /