Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 3d2a632

Browse files
Lei ZhuLei Zhu
authored andcommitted
fix unit test
1 parent e5ff803 commit 3d2a632

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/src/configuration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe("Configuration", () => {
174174
expect(config.accessAPI).to.equal("FAKE_ACCESSKEY");
175175
expect(config.accessUser).to.equal("FAKE_USERNAME");
176176
expect(config.tunnel.username).to.equal("FAKE_USERNAME");
177-
expect(config.tunnel.password).to.equal("FAKE_PASSWORD");
177+
expect(config.tunnel.accessKey).to.equal("FAKE_PASSWORD");
178178
expect(config.useTunnels).to.equal(true);
179179
expect(config.tunnel.tunnelIdentifier).to.not.equal(null);
180180
expect(config.tunnel.restUrl).to.not.equal(null);
@@ -197,7 +197,7 @@ describe("Configuration", () => {
197197
expect(config.accessAPI).to.equal("FAKE_ACCESSKEY");
198198
expect(config.accessUser).to.equal("FAKE_USERNAME");
199199
expect(config.tunnel.username).to.equal("FAKE_USERNAME");
200-
expect(config.tunnel.password).to.equal("FAKE_PASSWORD");
200+
expect(config.tunnel.accessKey).to.equal("FAKE_PASSWORD");
201201
expect(config.useTunnels).to.equal(true);
202202
expect(config.tunnel.tunnelIdentifier).to.not.equal(null);
203203
expect(config.tunnel.restUrl).to.not.equal(null);

test/src/tunnel.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("Tunnel", () => {
1414
let options = {
1515
tunnel: {
1616
username: "FAKE_USERNAME",
17-
password: "FAKE_PASSWORD",
17+
accessKey: "FAKE_PASSWORD",
1818
tunnelIdentifier: "FAKE_TUNNELID"
1919
}
2020
};
@@ -31,7 +31,7 @@ describe("Tunnel", () => {
3131

3232
it("constructor", () => {
3333
expect(tunnel.options.tunnel.username).to.equal("FAKE_USERNAME");
34-
expect(tunnel.options.tunnel.password).to.equal("FAKE_PASSWORD");
34+
expect(tunnel.options.tunnel.accessKey).to.equal("FAKE_PASSWORD");
3535
expect(tunnel.options.tunnel.tunnelIdentifier).to.equal("FAKE_TUNNELID");
3636
});
3737

0 commit comments

Comments
 (0)