File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2705,17 +2705,17 @@ describe('User ID', function () {
2705
2705
} ) . catch ( done ) ;
2706
2706
} ) ;
2707
2707
2708
- it ( 'pbjs.getEncryptedEidsForSource should return string if custom function is defined' , ( ) => {
2708
+ it ( 'pbjs.getEncryptedEidsForSource should return string if custom function is defined' , ( done ) => {
2709
2709
const getCustomSignal = ( ) => {
2710
2710
return '{"keywords":["tech","auto"]}' ;
2711
2711
}
2712
- const expectedString = '" 1||{\"keywords\":[\"tech\",\"auto\"]}" ' ;
2712
+ const expectedString = '1||eyJrZXl3b3JkcyI6WyJ0ZWNoIiwiYXV0byJdfQ== ' ;
2713
2713
const encrypt = false ;
2714
2714
const source = 'pubmatic.com' ;
2715
2715
( getGlobal ( ) ) . getEncryptedEidsForSource ( source , encrypt , getCustomSignal ) . then ( ( result ) => {
2716
2716
expect ( result ) . to . equal ( expectedString ) ;
2717
2717
done ( ) ;
2718
- } ) ;
2718
+ } ) . catch ( done ) ;
2719
2719
} ) ;
2720
2720
2721
2721
it ( 'pbjs.getUserIdsAsEidBySource' , ( ) => {
You can’t perform that action at this time.
0 commit comments