Skip to content

Commit 14b2fb6

Browse files
refactor: enhance TestComponent props with optional audience and scope
1 parent a92142e commit 14b2fb6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

__tests__/auth-provider.test.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,13 +1095,19 @@ describe('Auth0Provider - useMemo dependency behavior', () => {
10951095
window.history.pushState({}, document.title, '/');
10961096
});
10971097

1098-
const TestComponent = ({
1099-
clientId = '__test_client_id__',
1098+
interface TestComponentProps {
1099+
clientId?: string;
1100+
audience?: string;
1101+
scope?: string;
1102+
}
1103+
1104+
const TestComponent: React.FC<TestComponentProps> = ({
1105+
clientId = '__test_client_id__',
11001106
audience = '__test_audience__',
11011107
scope = 'read:profile openid'
11021108
}) => (
1103-
<Auth0Provider
1104-
domain="__test_domain__"
1109+
<Auth0Provider
1110+
domain="__test_domain__"
11051111
clientId={clientId}
11061112
authorizationParams={{
11071113
audience,

0 commit comments

Comments
 (0)