Skip to content

Commit

Permalink
modern js
Browse files Browse the repository at this point in the history
  • Loading branch information
simonh1000 committed Jan 20, 2024
1 parent 00b1812 commit 6974786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ftp-deploy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("ftp-deploy.spec: deploy tests", () => {

it("should fail if badly configured", () => {
const d = new FtpDeploy();
const configError = Object.assign({}, config, { port: 212 });
const configError = { ...config, port: 212 };
return del(remoteDir)
.then(() => {
return d.deploy(configError);
Expand All @@ -45,7 +45,7 @@ describe("ftp-deploy.spec: deploy tests", () => {
const d = new FtpDeploy();
return del(remoteDir)
.then(() => {
let c2 = Object.assign({}, config, { include: [] });
let c2 = { ...config, include: [] };
return d.deploy(c2);
})
.catch((err) => {
Expand Down

0 comments on commit 6974786

Please sign in to comment.