Skip to content

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

-25
This file was deleted.

src/index.js

+2-5
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)