fix leaked state in tests.

This commit is contained in:
Tilde Ann Thurium 2018-09-13 16:24:46 -07:00
parent 9e6b4b413b
commit dc1f6a02f3

View File

@ -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', () => {