ssh-client-wrapper 2.2.9 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/test/util.js +11 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh-client-wrapper",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "wrapper library for open ssh client and rsync",
5
5
  "keywords": [
6
6
  "ssh",
package/test/util.js CHANGED
@@ -23,7 +23,7 @@ describe("test for sanityCheck", () => {
23
23
  it("should remove empty string member in sshOpt", () => {
24
24
  expect(sanityCheck({ host, sshOpt: ["foo", " ", "bar"], user: "user", port: 33 })).to.deep.equal({ host, sshOpt: ["foo", "bar"], user: "user", port: 33 });
25
25
  });
26
- it("should just chage type if string value specified for number", () => {
26
+ it("should just change type if string value specified for number", () => {
27
27
  expect(sanityCheck({
28
28
  host,
29
29
  port: "11",
@@ -54,7 +54,7 @@ describe("test for sanityCheck", () => {
54
54
  host
55
55
  });
56
56
  });
57
- it("should just chage type if string value specified for boolean member", () => {
57
+ it("should just change type if string value specified for boolean member", () => {
58
58
  expect(sanityCheck({
59
59
  host,
60
60
  noStrictHostkeyChecking: "true"
@@ -63,7 +63,7 @@ describe("test for sanityCheck", () => {
63
63
  noStrictHostkeyChecking: true
64
64
  });
65
65
  });
66
- it("should just chage type if number value specified for boolean member", () => {
66
+ it("should just change type if number value specified for boolean member", () => {
67
67
  expect(sanityCheck({
68
68
  host,
69
69
  noStrictHostkeyChecking: 0
@@ -72,4 +72,12 @@ describe("test for sanityCheck", () => {
72
72
  noStrictHostkeyChecking: false
73
73
  });
74
74
  });
75
+ it("shold keep addtional properties", () => {
76
+ const testData = {
77
+ host,
78
+ hoge: 3,
79
+ foo: () => {}
80
+ };
81
+ expect(sanityCheck(testData)).to.deep.equal(testData);
82
+ });
75
83
  });