mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-28 22:30:40 -04:00
Merge pull request #805 from thisandagain/bugfix/802
Replace 'got' module with 'nets'
This commit is contained in:
commit
519d41d966
4 changed files with 32 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue