Skip to content

Commit 350d9fb

Browse files
committed
Removed dependency from tests as well where it was being used directly
1 parent 0cf08d3 commit 350d9fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/optimizely-sdk/lib/tests/test_data.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
var cloneDeep = require('lodash/cloneDeep');
16+
var fns = require('../utils/fns');
1717

1818
var config = {
1919
revision: '42',
@@ -345,7 +345,7 @@ var getParsedAudiences = [
345345
];
346346

347347
var getTestProjectConfig = function() {
348-
return cloneDeep(config);
348+
return fns.cloneJsonObject(config);
349349
};
350350

351351
var configWithFeatures = {
@@ -1010,7 +1010,7 @@ var configWithFeatures = {
10101010
};
10111011

10121012
var getTestProjectConfigWithFeatures = function() {
1013-
return cloneDeep(configWithFeatures);
1013+
return fns.cloneJsonObject(configWithFeatures);
10141014
};
10151015

10161016
var datafileWithFeaturesExpectedData = {
@@ -2036,7 +2036,7 @@ var unsupportedVersionConfig = {
20362036
};
20372037

20382038
var getUnsupportedVersionConfig = function() {
2039-
return cloneDeep(unsupportedVersionConfig);
2039+
return fns.cloneJsonObject(unsupportedVersionConfig);
20402040
};
20412041

20422042
var typedAudiencesConfig = {
@@ -2437,7 +2437,7 @@ var typedAudiencesConfig = {
24372437
};
24382438

24392439
var getTypedAudiencesConfig = function() {
2440-
return cloneDeep(typedAudiencesConfig);
2440+
return fns.cloneJsonObject(typedAudiencesConfig);
24412441
};
24422442

24432443
var typedAudiencesById = {
@@ -2575,7 +2575,7 @@ var mutexFeatureTestsConfig = {
25752575
};
25762576

25772577
var getMutexFeatureTestsConfig = function() {
2578-
return cloneDeep(mutexFeatureTestsConfig);
2578+
return fns.cloneJsonObject(mutexFeatureTestsConfig);
25792579
};
25802580

25812581
module.exports = {

0 commit comments

Comments
 (0)