@@ -491,7 +491,10 @@ suite('Experimentation service', () => {
491491 await experimentService . activate ( ) ;
492492
493493 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+ } ) ;
495498 } ) ;
496499
497500 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', () => {
523526 await experimentService . activate ( ) ;
524527
525528 const { properties } = telemetryEvents [ 1 ] ;
526- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
529+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
527530 } ) ;
528531
529532 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', () => {
555558 await experimentService . activate ( ) ;
556559
557560 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+ } ) ;
559565 } ) ;
560566
561567 // This is an unlikely scenario.
@@ -577,7 +583,7 @@ suite('Experimentation service', () => {
577583 await experimentService . activate ( ) ;
578584
579585 const { properties } = telemetryEvents [ 1 ] ;
580- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
586+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
581587 } ) ;
582588
583589 // This is also an unlikely scenario.
@@ -608,7 +614,7 @@ suite('Experimentation service', () => {
608614 await experimentService . activate ( ) ;
609615
610616 const { properties } = telemetryEvents [ 1 ] ;
611- assert . deepStrictEqual ( properties , { optedInto : [ ] , optedOutFrom : [ ] } ) ;
617+ assert . deepStrictEqual ( properties , { optedInto : '[]' , optedOutFrom : '[]' } ) ;
612618 } ) ;
613619 } ) ;
614620} ) ;
0 commit comments