Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/IdentityGate.dom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>((r) => { resolve = r; }));
const { unmount } = render(<IdentityGate onIdentity={vi.fn()} />);
const { container, unmount } = render(<IdentityGate onIdentity={vi.fn()} />);
unmount();
resolve(true);
await Promise.resolve();
expect(container).toBeEmptyDOMElement();
});

it('handles availability rejection, provider Error, blank submit, invalid characters, and token omission', async () => {
Expand Down