Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elaichenkov committed Aug 8, 2023
1 parent 0704ed5 commit 3cbcda1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-zephyr",
"version": "0.0.10",
"version": "1.0.0",
"description": "Zephyr reporter for the Playwright",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion src/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { createJsonReport } from './create-report-file';
import { validateOptions } from './validate-options';
import { ZephyrService } from './zephyr-cloud.service';


export class ZephyrReporter implements Reporter {
private zephyrService!: ZephyrService;
private testResults: ZephyrTestResult[] = [];
Expand Down
1 change: 0 additions & 1 deletion src/convert-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export type ZephyrTestCycle = {
};
};


export function convertStatus(status: string): ZephyrStatus {
if (status === 'passed') return 'Pass';
if (status === 'failed') return 'Fail';
Expand Down
8 changes: 2 additions & 6 deletions src/zephyr-cloud.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,12 @@ export class ZephyrService {

if (error.response) {
throw new Error(
`\nStatus: ${error.response.status} \nHeaders: ${inspect(error.response.headers)} \nData: ${inspect(
error.response.data,
)}`,
`\nStatus: ${error.response.status} \nHeaders: ${inspect(error.response.headers)} \nData: ${inspect(error.response.data)}`,
);
} else if (error.request) {
throw new Error(`The request was made but no response was received. \n Error: ${inspect(error.toJSON())}`);
} else {
throw new Error(
`Something happened in setting up the request that triggered an Error\n : ${inspect(error.message)}`,
);
throw new Error(`Something happened in setting up the request that triggered an Error\n : ${inspect(error.message)}`);
}
}

Expand Down

0 comments on commit 3cbcda1

Please sign in to comment.