@@ -263,7 +263,7 @@ describe('lib/optimizely', function() {
263
263
const datafile = testData . getTestProjectConfig ( ) ;
264
264
265
265
mockConfigManager . setConfig (
266
- createProjectConfig ( datafile , JSON . stringify ( datafile ) ) ) ,
266
+ createProjectConfig ( datafile , JSON . stringify ( datafile ) ) ) ;
267
267
268
268
optlyInstance = new Optimizely ( {
269
269
clientEngine : 'node-sdk' ,
@@ -2840,9 +2840,14 @@ describe('lib/optimizely', function() {
2840
2840
} ) ;
2841
2841
2842
2842
it ( 'should send notification with variation key and type feature-test when getVariation returns feature experiment variation' , function ( ) {
2843
+ const mockConfigManager = getMockProjectConfigManager ( ) ;
2844
+ const datafile = testData . getTestProjectConfigWithFeatures ( ) ;
2845
+
2846
+ mockConfigManager . setConfig (
2847
+ createProjectConfig ( datafile , JSON . stringify ( datafile ) ) ) ;
2843
2848
var optly = new Optimizely ( {
2844
2849
clientEngine : 'node-sdk' ,
2845
- datafile : testData . getTestProjectConfigWithFeatures ( ) ,
2850
+ projectConfigManager : mockConfigManager ,
2846
2851
errorHandler : errorHandler ,
2847
2852
eventDispatcher : eventDispatcher ,
2848
2853
jsonSchemaValidator : jsonSchemaValidator ,
0 commit comments