Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Make devicesService.getDevice public #987

Merged
merged 1 commit into from
Jul 10, 2017

Conversation

rosen-vladimirov
Copy link
Collaborator

devicesService.getDevice method returns device instance based on specified device identifier or number (from the list of devices).
Make it public, so it can be used in tns debug <platform> command.

`devicesService.getDevice` method returns device instance based on specified device identifier or number (from the list of devices).
Make it public, so it can be used in `tns debug <platform>` command.
@justcodebuilduser
Copy link

💔

@@ -255,7 +255,7 @@ export class DevicesService extends EventEmitter implements Mobile.IDevicesServi
* Method expects running devices.
* @param identifier parameter passed by the user to --device flag
*/
private async getDevice(deviceOption: string): Promise<Mobile.IDevice> {
public async getDevice(deviceOption: string): Promise<Mobile.IDevice> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the method becomes public, we may consider adding tests for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that the method needs separate tests, but currently it is already covered with tests, mainly here

@rosen-vladimirov rosen-vladimirov merged commit c6898cf into master Jul 10, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-debug-android branch July 10, 2017 20:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants