Skip to content

Commit 02b3abe

Browse files
author
RTLcoil
authored
Fix config backup in sign requests test (#476)
1 parent 96b1f71 commit 02b3abe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/api/uploader/uploader_spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const ClientRequest = require('_http_client').ClientRequest;
1010
const cloudinary = require("../../../../cloudinary");
1111
const helper = require("../../../spechelper");
1212
const describe = require('../../../testUtils/suite');
13+
const cloneDeep = require('lodash/cloneDeep');
1314

1415
const IMAGE_FILE = helper.IMAGE_FILE;
1516
const LARGE_RAW_FILE = helper.LARGE_RAW_FILE;
@@ -1173,7 +1174,7 @@ describe("uploader", function () {
11731174
writeSpy = void 0;
11741175
beforeEach(function () {
11751176
writeSpy = sinon.spy(ClientRequest.prototype, 'write');
1176-
configBck2 = cloudinary.config();
1177+
configBck2 = cloneDeep(cloudinary.config());
11771178
cloudinary.config({
11781179
api_key: "1234",
11791180
api_secret: ""

0 commit comments

Comments
 (0)