Skip to content

Commit e95190d

Browse files
update and minor fixes
1 parent fd29d54 commit e95190d

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ node_modules
2828

2929
# TestingBot specific files
3030
*.jar
31+
package-lock.json

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "node"

circle.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/tunnel-launcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function run (options, callback) {
115115
if (data.indexOf('is available for download') > -1) {
116116
logger(data)
117117
}
118-
if (data.indexOf('error code : 401') > -1) {
118+
if (data.indexOf('401 Unauthorized') > -1) {
119119
activeTunnel.error = 'Invalid credentials. Please supply the correct key/secret obtained from TestingBot.com'
120120
activeTunnel.close()
121121
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.1.7",
66
"homepage": "https://github.com/testingbot/testingbot-tunnel-launcher",
77
"scripts": {
8-
"lint": "eslint .",
8+
"lint": "eslint lib/",
99
"test": "make test",
1010
"build": "babel lib -d build"
1111
},
@@ -14,10 +14,10 @@
1414
},
1515
"devDependencies": {
1616
"babel-cli": "^6.0.0",
17-
"babel-preset-env" : "^1.6.1",
17+
"babel-eslint": "^10.0.3",
18+
"babel-preset-env": "^1.6.1",
1819
"eslint": "^6.8.0",
1920
"mocha": "^7.0.1",
20-
"mocha": "^7.0.1",
2121
"mocha-junit-reporter": "^1.15.0"
2222
},
2323
"engines": {

test/tunnel-launcher_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Tunnel Launcher', function() {
2222
this.timeout(10000);
2323
tunnelLauncher({ apiKey: 'fake', apiSecret: 'fake' }, function(err, tunnel) {
2424
assert.equal(tunnel, null);
25-
assert.equal(err.message, "An error ocurred: 401 Unauthorized. Please supply the correct API key and API secret");
25+
assert.equal(err.message, "Invalid credentials. Please supply the correct key/secret obtained from TestingBot.com");
2626
done();
2727
});
2828
});

0 commit comments

Comments
 (0)