Skip to content

Commit dd87b4e

Browse files
committed
inline simplified mapDeviceToExecution().
1 parent 28245e3 commit dd87b4e

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/appdistribution/client.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ import { appDistributionOrigin } from "../api";
1010
import {
1111
AabInfo,
1212
BatchRemoveTestersResponse,
13+
BatchUpdateTestCasesRequest,
14+
BatchUpdateTestCasesResponse,
1315
Group,
1416
ListGroupsResponse,
1517
ListTestCasesResponse,
1618
ListTestersResponse,
1719
LoginCredential,
18-
mapDeviceToExecution,
1920
ReleaseTest,
2021
TestCase,
21-
BatchUpdateTestCasesRequest,
22-
BatchUpdateTestCasesResponse,
2322
TestDevice,
2423
Tester,
2524
UploadReleaseResponse,
@@ -284,7 +283,7 @@ export class AppDistributionClient {
284283
method: "POST",
285284
path: `${releaseName}/tests`,
286285
body: {
287-
deviceExecutions: devices.map(mapDeviceToExecution),
286+
deviceExecutions: devices.map((device) => ({device})),
288287
loginCredential,
289288
testCase: testCaseName,
290289
},

src/appdistribution/types.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,6 @@ export interface DeviceExecution {
100100
inconclusiveReason?: string;
101101
}
102102

103-
export function mapDeviceToExecution(device: TestDevice): DeviceExecution {
104-
return {
105-
device: {
106-
model: device.model,
107-
version: device.version,
108-
orientation: device.orientation,
109-
locale: device.locale,
110-
},
111-
};
112-
}
113-
114103
export interface FieldHints {
115104
usernameResourceName?: string;
116105
passwordResourceName?: string;

0 commit comments

Comments
 (0)