@@ -491,7 +491,10 @@ suite('Experimentation service', () => {
491
491
await experimentService . activate ( ) ;
492
492
493
493
const { properties } = telemetryEvents [ 1 ] ;
494
- assert . deepStrictEqual ( properties , { optedInto : [ 'foo' ] , optedOutFrom : [ 'bar' ] } ) ;
494
+ assert . deepStrictEqual ( properties , {
495
+ optedInto : JSON . stringify ( [ 'foo' ] ) ,
496
+ optedOutFrom : JSON . stringify ( [ 'bar' ] ) ,
497
+ } ) ;
495
498
} ) ;
496
499
497
500
test ( 'Set telemetry properties to empty arrays if no experiments have been opted into or out from' , async ( ) => {
@@ -523,7 +526,7 @@ suite('Experimentation service', () => {
523
526
await experimentService . activate ( ) ;
524
527
525
528
const { properties } = telemetryEvents [ 1 ] ;
526
- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
529
+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
527
530
} ) ;
528
531
529
532
test ( 'If the entered value for a setting contains "All", do not expand it to be a list of all experiments, and pass it as-is' , async ( ) => {
@@ -555,7 +558,10 @@ suite('Experimentation service', () => {
555
558
await experimentService . activate ( ) ;
556
559
557
560
const { properties } = telemetryEvents [ 0 ] ;
558
- assert . deepStrictEqual ( properties , { optedInto : [ 'All' ] , optedOutFrom : [ 'All' ] } ) ;
561
+ assert . deepStrictEqual ( properties , {
562
+ optedInto : JSON . stringify ( [ 'All' ] ) ,
563
+ optedOutFrom : JSON . stringify ( [ 'All' ] ) ,
564
+ } ) ;
559
565
} ) ;
560
566
561
567
// This is an unlikely scenario.
@@ -577,7 +583,7 @@ suite('Experimentation service', () => {
577
583
await experimentService . activate ( ) ;
578
584
579
585
const { properties } = telemetryEvents [ 1 ] ;
580
- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
586
+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
581
587
} ) ;
582
588
583
589
// This is also an unlikely scenario.
@@ -608,7 +614,7 @@ suite('Experimentation service', () => {
608
614
await experimentService . activate ( ) ;
609
615
610
616
const { properties } = telemetryEvents [ 1 ] ;
611
- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
617
+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
612
618
} ) ;
613
619
} ) ;
614
620
} ) ;
0 commit comments