|
13 | 13 | * See the License for the specific language governing permissions and
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 |
| -var cloneDeep = require('lodash/cloneDeep'); |
| 16 | +var fns = require('../utils/fns'); |
17 | 17 |
|
18 | 18 | var config = {
|
19 | 19 | revision: '42',
|
@@ -345,7 +345,7 @@ var getParsedAudiences = [
|
345 | 345 | ];
|
346 | 346 |
|
347 | 347 | var getTestProjectConfig = function() {
|
348 |
| - return cloneDeep(config); |
| 348 | + return fns.cloneJsonObject(config); |
349 | 349 | };
|
350 | 350 |
|
351 | 351 | var configWithFeatures = {
|
@@ -1010,7 +1010,7 @@ var configWithFeatures = {
|
1010 | 1010 | };
|
1011 | 1011 |
|
1012 | 1012 | var getTestProjectConfigWithFeatures = function() {
|
1013 |
| - return cloneDeep(configWithFeatures); |
| 1013 | + return fns.cloneJsonObject(configWithFeatures); |
1014 | 1014 | };
|
1015 | 1015 |
|
1016 | 1016 | var datafileWithFeaturesExpectedData = {
|
@@ -2036,7 +2036,7 @@ var unsupportedVersionConfig = {
|
2036 | 2036 | };
|
2037 | 2037 |
|
2038 | 2038 | var getUnsupportedVersionConfig = function() {
|
2039 |
| - return cloneDeep(unsupportedVersionConfig); |
| 2039 | + return fns.cloneJsonObject(unsupportedVersionConfig); |
2040 | 2040 | };
|
2041 | 2041 |
|
2042 | 2042 | var typedAudiencesConfig = {
|
@@ -2437,7 +2437,7 @@ var typedAudiencesConfig = {
|
2437 | 2437 | };
|
2438 | 2438 |
|
2439 | 2439 | var getTypedAudiencesConfig = function() {
|
2440 |
| - return cloneDeep(typedAudiencesConfig); |
| 2440 | + return fns.cloneJsonObject(typedAudiencesConfig); |
2441 | 2441 | };
|
2442 | 2442 |
|
2443 | 2443 | var typedAudiencesById = {
|
@@ -2575,7 +2575,7 @@ var mutexFeatureTestsConfig = {
|
2575 | 2575 | };
|
2576 | 2576 |
|
2577 | 2577 | var getMutexFeatureTestsConfig = function() {
|
2578 |
| - return cloneDeep(mutexFeatureTestsConfig); |
| 2578 | + return fns.cloneJsonObject(mutexFeatureTestsConfig); |
2579 | 2579 | };
|
2580 | 2580 |
|
2581 | 2581 | module.exports = {
|
|
0 commit comments