Skip to content

Commit a0196d8

Browse files
Update README.md
1 parent c8026be commit a0196d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The key and secret can be obtained from [TestingBot](https://testingbot.com/memb
1919
## Using the wrapper
2020

2121
```javascript
22-
var TestingBot = require('testingbot-api');
22+
const TestingBot = require('testingbot-api');
2323

24-
var tb = new TestingBot({
24+
const tb = new TestingBot({
2525
api_key: "your-tb-key",
2626
api_secret: "your-tb-secret"
2727
});
@@ -88,7 +88,7 @@ api.getTestDetails(sessionId, function(error, testDetails) {});
8888
Updates a single test. For example, update the `passed` state of a test (whether it was successful or not).
8989

9090
```javascript
91-
var testData = { "test[success]" : "1", "test[status_message]" : "test" };
91+
const testData = { "test[success]" : "1", "test[status_message]" : "test" };
9292
api.updateTest(testData, sessionId, function(error, testDetails) {});
9393
```
9494

0 commit comments

Comments
 (0)