Skip to content

Commit acd0b6d

Browse files
committed
2 parents c568f15 + 3cbcda1 commit acd0b6d

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cloud.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { createJsonReport } from './create-report-file';
99
import { validateOptions } from './validate-options';
1010
import { ZephyrService } from './zephyr-cloud.service';
1111

12-
1312
export class ZephyrReporter implements Reporter {
1413
private zephyrService!: ZephyrService;
1514
private testResults: ZephyrTestResult[] = [];

src/convert-status.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export type ZephyrTestCycle = {
2727
};
2828
};
2929

30-
3130
export function convertStatus(status: string): ZephyrStatus {
3231
if (status === 'passed') return 'Pass';
3332
if (status === 'failed') return 'Fail';

src/zephyr-cloud.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,12 @@ export class ZephyrService {
9393

9494
if (error.response) {
9595
throw new Error(
96-
`\nStatus: ${error.response.status} \nHeaders: ${inspect(error.response.headers)} \nData: ${inspect(
97-
error.response.data,
98-
)}`,
96+
`\nStatus: ${error.response.status} \nHeaders: ${inspect(error.response.headers)} \nData: ${inspect(error.response.data)}`,
9997
);
10098
} else if (error.request) {
10199
throw new Error(`The request was made but no response was received. \n Error: ${inspect(error.toJSON())}`);
102100
} else {
103-
throw new Error(
104-
`Something happened in setting up the request that triggered an Error\n : ${inspect(error.message)}`,
105-
);
101+
throw new Error(`Something happened in setting up the request that triggered an Error\n : ${inspect(error.message)}`);
106102
}
107103
}
108104

0 commit comments

Comments
 (0)