@@ -65,7 +65,7 @@ describe('lib/core/bucketer', function () {
6565
6666 describe ( 'return values for bucketing (excluding groups)' , function ( ) {
6767 beforeEach ( function ( ) {
68- configObj = projectConfig . createProjectConfig ( cloneDeep ( testData ) ) ;
68+ configObj = projectConfig . createProjectConfig ( JSON . stringify ( testData ) ) ;
6969 bucketerParams = {
7070 experimentId : configObj . experiments [ 0 ] . id ,
7171 experimentKey : configObj . experiments [ 0 ] . key ,
@@ -107,7 +107,7 @@ describe('lib/core/bucketer', function () {
107107 describe ( 'return values for bucketing (including groups)' , function ( ) {
108108 var bucketerStub ;
109109 beforeEach ( function ( ) {
110- configObj = projectConfig . createProjectConfig ( cloneDeep ( testData ) ) ;
110+ configObj = projectConfig . createProjectConfig ( JSON . stringify ( testData ) ) ;
111111 bucketerParams = {
112112 experimentId : configObj . experiments [ 0 ] . id ,
113113 experimentKey : configObj . experiments [ 0 ] . key ,
@@ -255,7 +255,7 @@ describe('lib/core/bucketer', function () {
255255
256256 describe ( 'when the bucket value falls into empty traffic allocation ranges' , function ( ) {
257257 beforeEach ( function ( ) {
258- configObj = projectConfig . createProjectConfig ( cloneDeep ( testData ) ) ;
258+ configObj = projectConfig . createProjectConfig ( JSON . stringify ( testData ) ) ;
259259 bucketerParams = {
260260 experimentId : configObj . experiments [ 0 ] . id ,
261261 experimentKey : configObj . experiments [ 0 ] . key ,
@@ -303,7 +303,7 @@ describe('lib/core/bucketer', function () {
303303
304304 describe ( 'when the traffic allocation has invalid variation ids' , function ( ) {
305305 beforeEach ( function ( ) {
306- configObj = projectConfig . createProjectConfig ( cloneDeep ( testData ) ) ;
306+ configObj = projectConfig . createProjectConfig ( JSON . stringify ( testData ) ) ;
307307 bucketerParams = {
308308 experimentId : configObj . experiments [ 0 ] . id ,
309309 experimentKey : configObj . experiments [ 0 ] . key ,
@@ -364,7 +364,7 @@ describe('lib/core/bucketer', function () {
364364 } ) ;
365365
366366 beforeEach ( function ( ) {
367- var configObj = projectConfig . createProjectConfig ( cloneDeep ( testData ) ) ;
367+ var configObj = projectConfig . createProjectConfig ( JSON . stringify ( testData ) ) ;
368368 bucketerParams = {
369369 trafficAllocationConfig : configObj . experiments [ 0 ] . trafficAllocation ,
370370 variationIdMap : configObj . variationIdMap ,
0 commit comments