Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2467eb2

Browse files
add unit test
1 parent d31ed25 commit 2467eb2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/optimizely-sdk/lib/core/optimizely_config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module.exports = {
117117
return {
118118
experimentsMap: experimentsMap,
119119
featuresMap: getFeaturesMap(configObj, experimentsMap),
120-
projectId: configObj.projectId,
121120
revision: configObj.revision,
121+
projectId: configObj.projectId,
122122
};
123123
},
124124
};

packages/optimizely-sdk/lib/core/optimizely_config/index.tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,9 @@ describe('lib/core/optimizely_config', function() {
121121
it('should return correct config revision', function() {
122122
assert.equal(optimizelyConfigObject.revision, datafile.revision);
123123
});
124+
125+
it('should return correct config projectId', function() {
126+
assert.equal(optimizelyConfigObject.projectId, datafile.projectId);
127+
});
124128
});
125129
});

0 commit comments

Comments
 (0)