Skip to content

Commit f88fd9f

Browse files
committed
up
1 parent eb9110c commit f88fd9f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/optimizely/index.tests.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ describe('lib/optimizely', function() {
263263
const datafile = testData.getTestProjectConfig();
264264

265265
mockConfigManager.setConfig(
266-
createProjectConfig(datafile, JSON.stringify(datafile))),
266+
createProjectConfig(datafile, JSON.stringify(datafile)));
267267

268268
optlyInstance = new Optimizely({
269269
clientEngine: 'node-sdk',
@@ -2840,9 +2840,14 @@ describe('lib/optimizely', function() {
28402840
});
28412841

28422842
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)));
28432848
var optly = new Optimizely({
28442849
clientEngine: 'node-sdk',
2845-
datafile: testData.getTestProjectConfigWithFeatures(),
2850+
projectConfigManager: mockConfigManager,
28462851
errorHandler: errorHandler,
28472852
eventDispatcher: eventDispatcher,
28482853
jsonSchemaValidator: jsonSchemaValidator,

0 commit comments

Comments
 (0)