mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Replace 'got' module with 'nets'. Resolves GH-802
This commit is contained in:
parent
140570d195
commit
a8c629dc9b
4 changed files with 27 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue