Skip to content

Commit cfc5cf4

Browse files
committed
fix lint
1 parent 888fee5 commit cfc5cf4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/appdistribution/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class AppDistributionClient {
283283
method: "POST",
284284
path: `${releaseName}/tests`,
285285
body: {
286-
deviceExecutions: devices.map((device) => ({device})),
286+
deviceExecutions: devices.map((device) => ({ device })),
287287
loginCredential,
288288
testCase: testCaseName,
289289
},

src/appdistribution/yaml_helper.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ function checkAllowedKeys(allowedKeys: Set<string>, o: object) {
6363
}
6464

6565
function fromYamlTestCases(appName: string, yamlTestCases: YamlTestCase[]): TestCase[] {
66-
6766
return yamlTestCases.map((yamlTestCase) => {
6867
checkAllowedKeys(ALLOWED_YAML_TEST_CASE_KEYS, yamlTestCase);
6968
return {
@@ -91,11 +90,11 @@ function fromYamlTestCases(appName: string, yamlTestCases: YamlTestCase[]): Test
9190
}
9291

9392
export function fromYaml(appName: string, yaml: string): TestCase[] {
94-
let parsedYaml: unknown
93+
let parsedYaml: unknown;
9594
try {
96-
parsedYaml = jsYaml.safeLoad(yaml)
95+
parsedYaml = jsYaml.safeLoad(yaml);
9796
} catch (err: unknown) {
98-
throw new FirebaseError(`Failed to parse YAML: ${getErrMsg(err)}`)
97+
throw new FirebaseError(`Failed to parse YAML: ${getErrMsg(err)}`);
9998
}
10099
if (!Array.isArray(parsedYaml)) {
101100
throw new FirebaseError("YAML file must contain a list of test cases.");

0 commit comments

Comments
 (0)