diff --git a/src/components/IdentityGate.dom.test.tsx b/src/components/IdentityGate.dom.test.tsx index 614cf8a..9c35a7e 100644 --- a/src/components/IdentityGate.dom.test.tsx +++ b/src/components/IdentityGate.dom.test.tsx @@ -45,10 +45,11 @@ describe('IdentityGate DOM', () => { it('does not publish Azure availability after unmount', async () => { let resolve!: (value: boolean) => void; auth.azureAvailable.mockReturnValue(new Promise((r) => { resolve = r; })); - const { unmount } = render(); + const { container, unmount } = render(); unmount(); resolve(true); await Promise.resolve(); + expect(container).toBeEmptyDOMElement(); }); it('handles availability rejection, provider Error, blank submit, invalid characters, and token omission', async () => {