@@ -2,21 +2,6 @@ import { userManagement, sso, webhooks, actions } from './index.public';
22
33describe ( 'Public Exports' , ( ) => {
44 describe ( 'userManagement exports' , ( ) => {
5- it ( 'should expose getAuthorizationUrl' , ( ) => {
6- expect ( userManagement . getAuthorizationUrl ) . toBeDefined ( ) ;
7- expect ( typeof userManagement . getAuthorizationUrl ) . toBe ( 'function' ) ;
8- } ) ;
9-
10- it ( 'should expose getLogoutUrl' , ( ) => {
11- expect ( userManagement . getLogoutUrl ) . toBeDefined ( ) ;
12- expect ( typeof userManagement . getLogoutUrl ) . toBe ( 'function' ) ;
13- } ) ;
14-
15- it ( 'should expose getJwksUrl' , ( ) => {
16- expect ( userManagement . getJwksUrl ) . toBeDefined ( ) ;
17- expect ( typeof userManagement . getJwksUrl ) . toBe ( 'function' ) ;
18- } ) ;
19-
205 it ( 'should generate authorization URLs correctly' , ( ) => {
216 const url = userManagement . getAuthorizationUrl ( {
227 clientId : 'client_123' ,
@@ -25,7 +10,9 @@ describe('Public Exports', () => {
2510 } ) ;
2611
2712 expect ( url ) . toContain ( 'client_id=client_123' ) ;
28- expect ( url ) . toContain ( 'redirect_uri=https%3A%2F%2Fexample.com%2Fcallback' ) ;
13+ expect ( url ) . toContain (
14+ 'redirect_uri=https%3A%2F%2Fexample.com%2Fcallback' ,
15+ ) ;
2916 expect ( url ) . toContain ( 'provider=authkit' ) ;
3017 } ) ;
3118
@@ -46,11 +33,6 @@ describe('Public Exports', () => {
4633 } ) ;
4734
4835 describe ( 'sso exports' , ( ) => {
49- it ( 'should expose getAuthorizationUrl' , ( ) => {
50- expect ( sso . getAuthorizationUrl ) . toBeDefined ( ) ;
51- expect ( typeof sso . getAuthorizationUrl ) . toBe ( 'function' ) ;
52- } ) ;
53-
5436 it ( 'should generate SSO authorization URLs correctly' , ( ) => {
5537 const url = sso . getAuthorizationUrl ( {
5638 clientId : 'client_123' ,
@@ -80,4 +62,5 @@ describe('Public Exports', () => {
8062 expect ( actions . constructAction ) . toBeDefined ( ) ;
8163 } ) ;
8264 } ) ;
83- } ) ;
65+ } ) ;
66+
0 commit comments