Merge pull request #805 from thisandagain/bugfix/802

Replace 'got' module with 'nets'
This commit is contained in:
Andrew Sliwinski 2017-11-27 15:17:04 -05:00 committed by GitHub
commit 519d41d966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 3 deletions

View file

@ -19,3 +19,21 @@ test('default connected', t => {
t.strictEqual(deviceManager.isConnected, true);
t.end();
});
test('list', t => {
const deviceManager = new DeviceManager();
deviceManager
.list('test', 'test', null)
.then(
body => {
// SDM is running
t.type(body, 'object');
t.end();
},
err => {
// If SDM is not running error is expected, continue
t.true(typeof err === 'object' || typeof err === 'undefined');
t.end();
}
);
});