feat(Adb): list devices _and_ emulators in one go (#1125)

This commit is contained in:
Raphael von der Grün
2020-11-19 21:30:56 +01:00
committed by GitHub
parent 0e8234abfd
commit aa679ea1d6
6 changed files with 42 additions and 70 deletions
+3 -3
View File
@@ -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']);
});
});
});