mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
fix leaked state in tests.
This commit is contained in:
parent
9e6b4b413b
commit
dc1f6a02f3
@ -113,6 +113,9 @@ describe('TooltipManager', () => {
|
||||
bubbles: true
|
||||
}))
|
||||
expect(document.body.querySelector('.tooltip')).not.toBeNull()
|
||||
// click again to hide the tooltip because otherwise state leaks
|
||||
// into other tests.
|
||||
element.click()
|
||||
})
|
||||
|
||||
it('allows a custom item to be specified for the content of the tooltip', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user