mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
don't use getTarget()
This commit is contained in:
@@ -145,6 +145,7 @@ describe('<sl-tooltip>', () => {
|
||||
el.innerHTML = '<sl-button>New element</sl-button>';
|
||||
await el.updateComplete;
|
||||
|
||||
expect(el.getTarget().textContent).to.equal('New element');
|
||||
// @ts-expect-error - target is a private property
|
||||
expect(el.target.innerHTML).to.equal('New element');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user