Replace 'got' module with 'nets'. Resolves GH-802

This commit is contained in:
Andrew Sliwinski 2017-11-20 17:04:17 -05:00
parent 140570d195
commit a8c629dc9b
4 changed files with 27 additions and 3 deletions

View file

@ -19,3 +19,16 @@ test('default connected', t => {
t.strictEqual(deviceManager.isConnected, true);
t.end();
});
test('list', t => {
const deviceManager = new DeviceManager();
deviceManager
.list('test', 'test', null)
.catch(err => {
t.true((typeof err === 'undefined') || (typeof err === 'object'));
})
.then(body => {
t.true((typeof body === 'undefined') || (typeof body === 'object'));
t.end();
});
});