@@ -550,7 +550,7 @@ describe('presentation', () => {
550550 const result = normalizePresentation ( {
551551 verifiableCredential : { foo : 'bar' } ,
552552 vp : { verifiableCredential : [ { foo : 'baz' } ] }
553- } as any )
553+ } )
554554 expect ( result ) . toMatchObject ( {
555555 verifiableCredential : [ { foo : 'bar' } , { foo : 'baz' } ]
556556 } )
@@ -646,7 +646,7 @@ describe('presentation', () => {
646646 } )
647647
648648 it ( 'merges type arrays for non-array types' , ( ) => {
649- const result = normalizePresentation ( { type : 'foo' , vp : { type : 'bar' } } as any )
649+ const result = normalizePresentation ( { type : 'foo' , vp : { type : 'bar' } } )
650650 expect ( result ) . toMatchObject ( { type : [ 'foo' , 'bar' ] } )
651651 expect ( result ) . not . toHaveProperty ( 'vp' )
652652 } )
@@ -666,7 +666,7 @@ describe('presentation', () => {
666666 } )
667667
668668 it ( 'merges @context arrays for non-array contexts' , ( ) => {
669- const result = normalizePresentation ( { '@context' : 'foo' , context : 'bar' , vp : { '@context' : 'baz' } } as any )
669+ const result = normalizePresentation ( { '@context' : 'foo' , context : 'bar' , vp : { '@context' : 'baz' } } )
670670 expect ( result ) . toMatchObject ( { '@context' : [ 'bar' , 'foo' , 'baz' ] } )
671671 expect ( result ) . not . toHaveProperty ( 'vp' )
672672 expect ( result ) . not . toHaveProperty ( 'context' )
@@ -773,7 +773,7 @@ describe('presentation', () => {
773773 const result = transformPresentationInput ( {
774774 verifiableCredential : [ { id : 'foo' } ] ,
775775 vp : { verifiableCredential : [ { foo : 'bar' } , 'header.payload.signature' ] }
776- } as any )
776+ } )
777777 expect ( result ) . toMatchObject ( {
778778 vp : { verifiableCredential : [ { id : 'foo' } , { foo : 'bar' } , 'header.payload.signature' ] }
779779 } )
@@ -784,7 +784,7 @@ describe('presentation', () => {
784784 const result = transformPresentationInput ( {
785785 verifiableCredential : { id : 'foo' } ,
786786 vp : { verifiableCredential : { foo : 'bar' } }
787- } as any )
787+ } )
788788 expect ( result ) . toMatchObject ( { vp : { verifiableCredential : [ { id : 'foo' } , { foo : 'bar' } ] } } )
789789 expect ( result ) . not . toHaveProperty ( 'verifiableCredential' )
790790 } )
@@ -793,7 +793,7 @@ describe('presentation', () => {
793793 const result = transformPresentationInput ( {
794794 verifiableCredential : { id : 'foo' , proof : { jwt : 'header.payload1.signature' } } ,
795795 vp : { verifiableCredential : [ { foo : 'bar' } , 'header.payload2.signature' ] }
796- } as any )
796+ } )
797797 expect ( result ) . toMatchObject ( {
798798 vp : { verifiableCredential : [ 'header.payload1.signature' , { foo : 'bar' } , 'header.payload2.signature' ] }
799799 } )
@@ -804,7 +804,7 @@ describe('presentation', () => {
804804 const result = transformPresentationInput ( {
805805 verifiableCredential : undefined ,
806806 vp : { verifiableCredential : [ null , { foo : 'bar' } , 'header.payload2.signature' ] }
807- } as any )
807+ } )
808808 expect ( result ) . toMatchObject ( { vp : { verifiableCredential : [ { foo : 'bar' } , 'header.payload2.signature' ] } } )
809809 expect ( result ) . not . toHaveProperty ( 'verifiableCredential' )
810810 } )
@@ -823,7 +823,7 @@ describe('presentation', () => {
823823 context : 'AA' ,
824824 '@context' : 'BB' ,
825825 vp : { '@context' : [ 'CC' ] }
826- } as any )
826+ } )
827827 expect ( result ) . toMatchObject ( { vp : { '@context' : [ 'AA' , 'BB' , 'CC' ] } } )
828828 expect ( result ) . not . toHaveProperty ( 'context' )
829829 expect ( result ) . not . toHaveProperty ( '@context' )
@@ -854,7 +854,7 @@ describe('presentation', () => {
854854 } )
855855
856856 it ( 'merges type fields when not array types' , ( ) => {
857- const result = transformPresentationInput ( { type : 'AA' , vp : { type : [ 'BB' ] } } as any )
857+ const result = transformPresentationInput ( { type : 'AA' , vp : { type : [ 'BB' ] } } )
858858 expect ( result ) . toMatchObject ( { vp : { type : [ 'AA' , 'BB' ] } } )
859859 expect ( result ) . not . toHaveProperty ( 'type' )
860860 } )
0 commit comments