@@ -22,7 +22,7 @@ describe('index', () => {
2222 const instance = new MtLinkSdk ( ) ;
2323
2424 instance . init ( 'clientId' , {
25- redirectUri : 'redirectUri'
25+ redirectUri : 'redirectUri' ,
2626 } ) ;
2727
2828 const options = instance . storedOptions ;
@@ -31,7 +31,7 @@ describe('index', () => {
3131 codeVerifier : options . codeVerifier ,
3232 mode : options . mode ,
3333 redirectUri : options . redirectUri ,
34- state : options . state
34+ state : options . state ,
3535 } ;
3636
3737 const result1 = instance . authorize ( { scopes : 'scopes' } ) ;
@@ -59,7 +59,7 @@ describe('index', () => {
5959 expect ( result6 ) . toBe ( 'test' ) ;
6060 expect ( exchangeToken ) . toBeCalledWith ( storedOptions , { code : 'code' } ) ;
6161
62- // @ts -ignore
62+ // @ts -ignore: set tokenInfo with invalid type value
6363 mocked ( tokenInfo ) . mockResolvedValueOnce ( 'test' ) ;
6464 const result7 = await instance . tokenInfo ( 'test' ) ;
6565 expect ( result7 ) . toBe ( 'test' ) ;
@@ -82,7 +82,7 @@ describe('index', () => {
8282 mtLinkSdk . init ( 'clientId' , {
8383 mode : 'local' ,
8484 state : 'state' ,
85- codeVerifier : 'codeVerifier'
85+ codeVerifier : 'codeVerifier' ,
8686 } ) ;
8787
8888 expect ( mtLinkSdk . storedOptions . mode ) . toBe ( 'local' ) ;
@@ -92,8 +92,8 @@ describe('index', () => {
9292
9393 test ( 'invalid mode default to production' , ( ) => {
9494 mtLinkSdk . init ( 'clientId' , {
95- // @ts -ignore
96- mode : 'invalid'
95+ // @ts -ignore: set mode to unsupported value
96+ mode : 'invalid' ,
9797 } ) ;
9898
9999 expect ( mtLinkSdk . storedOptions . mode ) . toBe ( 'production' ) ;
0 commit comments