File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ describe('AWSKMSService', () => {
6666 //* break if no profile loaded.
6767 if ( ! PROFILE ) return ;
6868
69- expect2 ( await service . sign ( null ) . catch ( GETERR ) ) . toEqual ( '@message[null] is invalid - kms.sign()' ) ;
69+ expect2 ( await service . sign ( null as any ) . catch ( GETERR ) ) . toEqual ( '@message[null] is invalid - kms.sign()' ) ;
7070 expect2 ( await service . sign ( '' ) . catch ( GETERR ) ) . toEqual ( '@message[] is invalid - kms.sign()' ) ;
7171 expect2 ( await service . sign ( 0 as any ) . catch ( GETERR ) ) . toEqual ( '@message[0] is invalid - kms.sign()' ) ;
7272
@@ -81,7 +81,7 @@ describe('AWSKMSService', () => {
8181 if ( 1 ) {
8282 const signature = await service . sign ( message , false ) ;
8383 const perf = $perf ( ) ;
84- const verified1 = await service . verify ( message , Buffer . from ( signature , 'base64' ) ) ;
84+ const verified1 = await service . verify ( message , signature ) ;
8585 expect2 ( ( ) => verified1 ) . toEqual ( true ) ;
8686 const verified2 = await service . verify ( message , signature ) ;
8787 expect2 ( ( ) => verified2 ) . toEqual ( true ) ;
You can’t perform that action at this time.
0 commit comments