Skip to content

Commit

Permalink
Fix config backup in sign requests test (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
RTLcoil authored Feb 21, 2021
1 parent 96b1f71 commit 02b3abe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/api/uploader/uploader_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ClientRequest = require('_http_client').ClientRequest;
const cloudinary = require("../../../../cloudinary");
const helper = require("../../../spechelper");
const describe = require('../../../testUtils/suite');
const cloneDeep = require('lodash/cloneDeep');

const IMAGE_FILE = helper.IMAGE_FILE;
const LARGE_RAW_FILE = helper.LARGE_RAW_FILE;
Expand Down Expand Up @@ -1173,7 +1174,7 @@ describe("uploader", function () {
writeSpy = void 0;
beforeEach(function () {
writeSpy = sinon.spy(ClientRequest.prototype, 'write');
configBck2 = cloudinary.config();
configBck2 = cloneDeep(cloudinary.config());
cloudinary.config({
api_key: "1234",
api_secret: ""
Expand Down

0 comments on commit 02b3abe

Please sign in to comment.