mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
feat(Adb): list devices _and_ emulators in one go (#1125)
This commit is contained in:
committed by
GitHub
parent
0e8234abfd
commit
aa679ea1d6
@@ -33,11 +33,11 @@ describe('device', () => {
|
||||
});
|
||||
|
||||
describe('list', () => {
|
||||
it('should return the list from adb devices', () => {
|
||||
AdbSpy.devices.and.returnValue(Promise.resolve(DEVICE_LIST));
|
||||
it('should return a list of all connected devices', () => {
|
||||
AdbSpy.devices.and.resolveTo(['emulator-5556', '123a76565509e124']);
|
||||
|
||||
return device.list().then(list => {
|
||||
expect(list).toEqual(DEVICE_LIST);
|
||||
expect(list).toEqual(['123a76565509e124']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user