saucelabs
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -268,2 +268,16 @@ var crypto = require('crypto'); | ||
SauceLabs.prototype.getSubAccountList = function (callback) { | ||
this.send({ | ||
method: 'GET', | ||
path: 'users/:username/list-subaccounts' | ||
}, callback); | ||
}; | ||
SauceLabs.prototype.getSubAccounts = function (callback) { | ||
this.send({ | ||
method: 'GET', | ||
path: 'users/:username/subaccounts' | ||
}, callback); | ||
}; | ||
// Helpers | ||
@@ -270,0 +284,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A wrapper around Sauce Labs REST API", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/holidayextras/node-saucelabs", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -290,2 +290,20 @@ # node-saucelabs [![Build Status](https://secure.travis-ci.org/danjenkins/node-saucelabs.png)](http://travis-ci.org/danjenkins/node-saucelabs)[![Build Status](https://www.codeship.io/projects/83c9b290-21de-0131-e459-3688c4e23c72/status)](https://www.codeship.io/projects/83c9b290-21de-0131-e459-3688c4e23c72/status) | ||
</tr> | ||
<tr> | ||
<td> | ||
GET /users/:username/list-subaccounts <br /> | ||
Access list of subaccounts | ||
</td> | ||
<td> | ||
getSubAccountList(cb) -> cb(err, res) | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
GET /users/:username/subaccounts <br /> | ||
Get information about a sub accounts | ||
</td> | ||
<td> | ||
getSubAccounts(cb) -> cb(err, res) | ||
</td> | ||
</tr> | ||
</tbody> | ||
@@ -292,0 +310,0 @@ </table> |
@@ -276,2 +276,16 @@ describe('SauceLabs', function () { | ||
}); | ||
describe('#getSubAccountList', function () { | ||
it('GETs `/rest/v1/users/:username/list-subaccounts`', function (done) { | ||
var mock = nockle.get('/rest/v1/users/:username/list-subaccounts'); | ||
sauce.getSubAccountList(verifySuccess(mock, done)); | ||
}); | ||
}); | ||
describe('#getSubAccounts', function () { | ||
it('GETs `/rest/v1/users/:username/subaccounts`', function (done) { | ||
var mock = nockle.get('/rest/v1/users/:username/subaccounts'); | ||
sauce.getSubAccounts(verifySuccess(mock, done)); | ||
}); | ||
}); | ||
}); | ||
@@ -278,0 +292,0 @@ }); |
33858
662
338